Suppose we are sure that the content in the Trash
folder is no longer needed. Let me show you how we can permanently delete this unwanted content from the Trash
folder, freeing up some space in the solution.
Apart from what we specified as general advice to be followed in these chapter's recipes in the introduction of this chapter, the following advice must be followed to apply concepts in the current recipe. If the user's target folder or content items we're going to permanently delete were located in public folders, the user must be a member of the administrator role or the owner of the content items and target folders we are deleting.
To permanently delete content from the Trash
folder one item at a time, we must perform the following steps:
Go to the solution explorer and browse the solution's folder structure for the
Trash
folder. Instead of the normal folder icon, the trash folder is indicated with a trash icon.Select the trash folder by clicking on it.
Select either the file or the folder we want to delete permanently from the Trash Content list.
From the Actions for Trash menu, select Permanently Delete.
A warning dialog box appears warning us that we are going to permanently delete the selected file or folder (depending on what we are going to delete) and that this action cannot be undone.
If we press the Yes, Permanently Delete button, the selected content item is immediately deleted from the
Trash
folder, and it will never be accessible again.If we press the No button, we will be taken back to the
Trash
folder and our content will not be deleted.
To permanently delete all the content from the Trash
folder in an easy way all at once, we must to the following:
Go to the solution explorer and browse the solution's folder structure for the
Trash
folder. Instead of the normal folder icon, theTrash
folder is indicated with a trash icon.From the Actions for Trash menu, select Empty the Trash.
A warning dialog box appears warning us that we are going to permanently delete all the items from the
Trash
and that this action cannot be undone.If we click on the Yes, Empty Trash button, all the content items are immediately deleted from the
Trash
folder and it will never be accessible again.If we click on the No button, we will be taken back to the
Trash
folder and our content will not be deleted.