Clear Folder
Command description
Delete all files and subfolders in the specified folder, but keep the folder itself.
Command Input Parameters
| input parameters | Input parameter type | Description |
|---|---|---|
| Folder to Clear | str | Path of the folder to clear |
Command Output Parameters
None
Edge Cases
- The command reports an error if the folder does not exist or the path is not a folder.
- Only the folder's contents are deleted; the folder itself is preserved.
- An empty folder is accepted and does not cause an error.
Generation Notes
- Delete the folder contents while preserving the folder itself. Use caution with important directories.