Symptoms
ShareGate Migrate displays the following error while deleting a file or folder:
This file or folder cannot be deleted. This might happen in the following situations:
This item is the current welcome page for this site.
This item is read-only.
This item is on hold or declared as a record.
โThis item is a folder and contains an item on hold or declared as a record.
Error code
IN-054-070
IN-505-070
Details
SharePoint does not allow the deletion of some items in certain conditions.
This item is the current welcome page for this site.
Details: ShareGate Migrate sometimes needs to delete items from the welcome page of your destination (with no manual action on your part) during a migration. There are a lot of default pages created for a new site, and ShareGate Migrate deletes them in order to bring your pages over from your source.
This item is read-only.
This item is on hold or declared as a record.
โ
Note: In some cases you can look for the presence of a retention hold library in your site.
This item is a folder and contains an item on hold or declared as a record.
Note: You can get this error even if you are not directly deleting any items. ShareGate Migrate often has to create and delete elements during the migration process to reproduce what you have at the source.
Solution
If this error is affecting your migration, you can try the following:
Manually delete the welcome page for the destination site pre-migration from the Explorer. If this is not possible, try to change the default welcome page in the settings.
Undeclare any items declared as records before attempting to delete them or run a migration.
To delete a folder containing at least one element declared as a record, you must undeclare all the items that are declared as records before deleting the folder.
If any items are read-only, you must remove the lock. You can see our permission level best practices.