Never thought it would take me about an hour to delete a Record library…
I was trying to delete a Record library and the delete option is not part of the library site settings as with any other type of library or list.
This is the first time I work with Record libraries so I found it interesting. I tried using SharePoint Designer and got the error “List cannot be deleted”. I was an administrator and the library had some documents so I thought maybe I had to delete first all documents and then try to delete it.
When trying to delete documents from the library and I kept getting this error: “The item cannot be deleted, moved, or renamed because it is either on hold or is a record which blocks deletion”
Turns out that when you create a Record library, by default it declares all items in the Library as records (which makes sense because it is a Record library right?), and a record cannot be deleted. So if you are planning to delete records from a Record library it is better to go to “Record declaration settings” (under the library site settings) and uncheck the “Automatically declare items as records when they are added to this list”.
If you however didn’t do this and want to delete an existing document record, go to “Record declaration settings” (under the library site settings), uncheck the “Automatically declare items as records when they are added to this list”, and check the “Always allow the manual declaration of records”.
By doing this you are now able to undeclared a record as a record, and then be able to delete it.
To undeclared a record:
Under the record context menu, select “Compliance Details”
You will see the status of the record, whether if it is on hold or not and wheter if it is a record or not. To be able to delete remove all any holds and “Undeclare record”.
Close the window and now try to delete the document; it will be deleted
Great! So the library is now empty and I still can’t delete it :S
Well, the job “Hold Processing and Reporting” takes care of scanning libraries to find records and to know what libraries what records or not. So we have to run this job for SharePoint to know that the library doesn’t have any records.
After running the job I go to the Library settings and the delete option is there!!! Finally!!!