Actions52
- Account Actions
- Backup Actions
- Database Actions
- File Actions
- Network Actions
- Schedule Actions
- Server Actions
- Startup Actions
- Subuser Actions
File → Delete
AI-generatedSummary
Delete one or more files from a specified server and directory within the Pterodactyl Panel client.
Inputs
- Server (required) — Select the server to delete files from, chosen from your accessible servers.
- Root Directory — Specify the parent directory path where the target files are located; defaults to '/'.
- Files (required) — Provide a comma-separated list of file names to delete within the specified directory.
Output shape
a single JSON object confirming the deletion status for the requested files
The operation returns a JSON response containing success or error details specific to the deletion request. Errors may occur if files do not exist or access is denied.
Examples
Example 1: Delete specified files from a server's root directory
Set 'Server' to the target server, leave 'Root Directory' as '/' or specify another directory, and provide file names in 'Files' separated by commas.