Hi.
We had some disk space problems last week with our tempdb database - as a fix, we created an additional "Rows Data" file on a seperate drive.
I have since managed to shrink the first file back down to 1GB. The other "Row Data" file, which I placed on a seperate drive, has grown to 843GB. I have tried to delete this file by using the SQL Server Mangement Studio Interface. I right clicked on tempdb, went to the Files tab, selected my other "Row Data" file, and pressed remove.
This removed it from the list of Database Files, but I cannot physically remove the file from the Disk as it says it's still in use.
Also, if I run SELECT * FROM sys.database_files in the context of tempdb, all three files appear.
Can anyone explain why the SSMS interface & the sys.database_files view are out-of-sync? How can I drop the SQL Server's connection to my secondary tempdev_F Row Data File, which I thought I had already deleted?