I have found that deactivating a feature in Sharepoint leaves erroneous entries in the AllDocs table in the content database. These table records then make deploying other features that contain the same filenames impossible as Sharepoint complains that they already exist. How can I make sure deactivating features does not leave old references in the content database?
Microsoft explicitly says that we should not execute queries directly on the database otherwise it will become unsupported.
all the best
I recall getting that error when I attempted to redeploy a feature that was not actually deleted. Perhaps you just need to go a few steps further?
EDIT: I’d also like to add my agreement that you should never attempt to modify the database directly.