I am trying to get rid of the health error [MissingSetupFile].
I followed some guide to get (querying the contentDB) the Id of the file (and of the Site and Web).
The issue is that the file does not exist anymore on SharePoint but it is still referenced in the ContentDB (AllDocs table).
To get the file I used:
and to check if exists:
$file.Exists #return true!
I checked also in the document library (not programmatically) and it does not exist.
Can I simply delete the record from the table AllDocs in the contentDB?