Delete a Folder
Delete an existing folder.
Make sure you really want to delete it!
The 'Delete a folder' command does not put the deleted file into the Recycle Bin, it deletes it permanently.
Additionally, note that the contents of the folder will be deleted along with the folder itself. If you want to confirm that a folder is empty before deleting it, you can use the Is Folder Empty command.
Using the 'Delete file', 'Delete file(s)', and 'Delete folder' commands by at end of a running wizard.
When using the 'Delete file(s)/folder' commands at the end of a running wizard, the Windows OS might prevent the delete-action due to the files being in-use/open.
To delete the file/folder after the wizard ends, you have two (2) options:
-
Manually delete the desired file/folder.
-
End the wizard and start a new wizard with the 'Delete' command:
-
End the wizard to let it automatically close all the open and in-use processes/files/folders.
-
Create a new continuing wizard.
-
Add the relevant 'Delete' command at the beginning of the continuing wizard and configure it to delete the desired file(s)/folder.
-
End the wizard or use it to execute additional steps.
-
When adding a 'Delete a folder' command, you have the option to select either the Local File System or SharePoint Online as the file storage location.
-
Select Local File System as your file storage location.
-
Enter the full path of the folder you want to delete.
-
Expand the Error handling option to provide instructions to the wizard on how to manage encountered errors. For more information on error handling, see Error handling.
To ensure that the folder deletion is not executed when one of the variables in the path is empty, check the 'Verify path before deleting' option.
You can delete a folder stored in your SharePoint Online.
See here for details, SharePoint Online.