How to Disable the Trash Option by Default for DirectAdmin File Manager?
The “Trash” option will be displayed in the confirmation window when removing a file with FileManager. By default, this option is always turned on. However, there is a way to override the default configuration and prevent the DirectAdmin File Manager’s Trash option from working.
This feature is available because of a new internal directadmin.conf value:
fm_to_trash_default=1
It is the reason why the Trash option is enabled by default.
To Disable the Trash Option by Default
1. Log in to DirectAdmin via SSH access.
2. Run this command:
/usr/local/directadmin/directadmin set fm_to_trash_default 0
It will set the value to 0 which in turn disables the Trash button as a default.
3. Restart the DirectAdmin service to apply the changes.
It is that simple to change settings and disable the Trash option of DirectAdmin File Manager as default.