Hello all,
I am wondering why is that when a filegroup/file is removed from the DB, it still shows up in sys.master_files and msdb.dbo.backupfile.
To reproduce, just create a database and add a filegroup or file to an existing file and delete that filegroup\file.
Now,Query Sys.master_files and you can still see the deleted Filegroup/file for the database. Of course the State_desc shows as 'Offline' but I am wondering why it is not removed completely.
Also, if you take a backup and query the msdb.dbo.backupfile, it will show up there as well. Again, State_desc = 'Dropped' but why is it not removed completely.
Thank you and have a wonderful day.
Hope it Helps!!