Delete
FileTools
Description
Delete files and directories safely and efficiently! The Delete tool offers precise control over delete operations - from individual files to complete directory structures with recursive deletion.
With clear confirmation feedback and detailed error handling, you always know exactly what was deleted and whether the operation succeeded. Ideal for cleanup work, temp file cleanup, and automated file management.
Why This Tool Stands Out
- Safe Deletion with confirmation
- Recursive Cleanup of folders
- Clear Feedback after every operation
- Batch-Ready for bulk deletion
Perfect for:
System administrators who clean up temp directories; developers who remove build artifacts; data processors who delete intermediate files; and anyone who wants to automate disk cleanup. Ideal for cleanup scripts and maintenance tasks.
Workflow support; time savings depend on the task
Instead of navigating through folders by hand, selecting files, and deleting them, remove entire directory structures with a single API call - including confirmation and error handling.
JSON Parameters
- path REQUIRED (String)The full path of the file or directory to delete. Example: "C:\\Temp\\oldfiles"
- recursive OPTIONAL (Boolean)Directories only: If true, subdirectories and their contents are deleted as well. Default: false
Example Call
{
"tool": "Delete",
"params": {
"path": "C:\\Temp\\logs",
"recursive": true
}
}
Example Usage
- "Delete all temporary files older than 7 days"
Return Values
The tool returns an object with the following properties:
- success (Boolean)
True if the deletion was successful - path (String)
The actual path of the deleted file/folder - deletedItems (Integer)
Number of deleted items (with recursive deletion) - wasDirectory (Boolean)
Indicates whether a directory was deleted - error (String, optional)
Error message if the deletion failed
Related Tools
Download for Free
Get started with FileTools today - free and secure for Windows
Download Now