A simple Minecraft plugin for version 1.20.6 that allows server administrators to delete specific files from the plugins directory using a console command.
- Delete any file within the plugins directory
- Console-only command for improved security
- Tab completion for easier command usage
- Immediate deletion without confirmation prompts
/deletefile <file_path>- Delete a specific file (example:/deletefile folder/config.yml)
- Can only be executed from the console
- Path traversal protection to prevent deleting files outside the plugins directory
- Only deletes files, not directories
# Settings
settings:
# Whether to log deletions to console
log-to-console: true- Download the plugin JAR file
- Place it in your server's
pluginsfolder - Start or restart your server
To build the plugin from source:
mvn clean package
The compiled JAR will be in the target directory.
This plugin should be used with caution as it provides a way to delete files from your server. The console-only restriction adds a layer of security, but still be careful when using it.
Mario Enache