Manually deleting backups in ispmanager 6
Via the control panel
To manually delete any backup, while logged in as the panel administrator navigate to the Backups section, select the desired backup, and click Delete.
Via the terminal
To manually delete a backup via the terminal, navigate to the /usr/local/mgr5 directory, set the BACKUP_TOKEN environment variable correctly, and execute the command sbin/backup2_cp --delete specifying the path to the backup file (the file with the infoextension). The token value is stored in the /etc/backup.conf file under the token parameter.
Example of deleting a single backup from local storage for a specific user:
BACKUP_TOKEN="type=local;url=/var/backups/";sbin/backup2_cp --delete var/backup/ispmgr/2025-09-08.<username>.info
Example of deleting all backups from FTP storage for a specific user:
BACKUP_TOKEN="password=<пароль>;type=ftp;url=ftp://<storage_address>;username=<storage_user>"; ls -1 var/backup/ispmgr/*<username>.info | xargs -I {} sbin/backup2_cp --delete {}
Example of deleting all backups in local storage:
BACKUP_TOKEN="type=local;url=/var/backups/";ls -1 var/backup/ispmgr/*.info | xargs -I {} sbin/backup2_cp --delete {}