Hello Magento community,
When I try deleting the backup files ("media" and "code") created during the installation of a module using Component Manager I get the following error message:
"We can't delete one or more backups."
1. What can possibly cause this?
2. Is it safe to delete manually the backup files from 0:/public_html/var/backups/ using FTP?
Can anyone please advise?
Solved! Go to Solution.
I'd recommend that you just uninstall the modules that are not required anymore and run system upgrade. However, if you don't want to do that then a simple rm -rf {your_backup_directory} command will do the job - but it is no different that removing files via FTP but it's a bit faster.
My answer is as follows:
1. What can possibly cause this?
It could be permission issue. Basically when you deploy a module using CLI, it deploys it using the account you are logged in. Make sure you are connect using the same email address if you want to make a change.
2. Is it safe to delete manually the backup files from 0:/public_html/var/backups/ using FTP?
You could do that but I highly recommend running the magento CLI command to remove the modules.
Please accept my answer as a solution if I was able to solve your issue.
@ShoaibRehman89, what would be the right command to delete one of the backup files from command line? Couldn't find it anywhere.
I'd recommend that you just uninstall the modules that are not required anymore and run system upgrade. However, if you don't want to do that then a simple rm -rf {your_backup_directory} command will do the job - but it is no different that removing files via FTP but it's a bit faster.
Update: I finally simply deleted backup files using FTP. The admin backend recognized this delete. So far, the system runs just fine.