views:

9

answers:

1

In a sharepoint content database we have noticed there are a couple of records in the all_docs table that reference documents that no longer exist. The listid guid that they are associated with is not in the site so we have no way to view them and delete them. I think this was a result of moving a content database from another environment into this one.

Can anyone suggest the best approach to clean this up? I need to delete it as it is referencing a page layout that I cannot delete until this page has been removed.

Thanks for any suggestions

A: 

Have a look at Fear and loathing, it describes an undocumented stsadm command to delete an object by its id.

Timores
Can this be any object or is this specific to timer jobs? It says it cannot find the object when I pass in the GUID from the ID column in the database
78lro
It is not specific to timer jobs, as a colleague used it to delete an invalid AAM mapping, but the full extent of its usage is unfortunately unknown, sorry.
Timores