Delete Folder
Permanently deletes a folder and all its contents recursively from pCloud.
Common Properties
- Name - The custom name of the node.
- Color - The custom color of the node.
- Delay Before (sec) - Waits in seconds before executing the node.
- Delay After (sec) - Waits in seconds after executing node.
- Continue On Error - Automation will continue regardless of any error. The default value is false.
info
If the ContinueOnError property is true, no error is caught when the project is executed, even if a Catch node is used.
Inputs
- Client Id - The client identifier returned from the Login node.
- Path - The full path to the folder to be deleted (e.g., "/OldProjects/Archive").
How It Works
The Delete Folder node permanently removes a folder and all of its contents from pCloud using recursive deletion. When executed, the node:
- Validates the Client Id
- Validates the path is not empty
- Normalizes the path by adding a leading "/" if needed
- Retrieves the authenticated pCloud client
- Recursively deletes the folder and all its contents (files and subfolders)
- Returns success when the folder is completely deleted
danger
This operation is PERMANENT and RECURSIVE. All files and subfolders within the specified folder will be deleted. This cannot be undone unless pCloud's trash/recycle bin feature retains them temporarily. Always verify the path before deleting.
Requirements
- An active pCloud connection (Client Id from Login node)
- Folder must exist at the specified path
- Appropriate permissions to delete the folder and its contents
- Valid folder path