cancel
Showing results for 
Search instead for 
Did you mean: 

Error message: We can't delete one or more backups

SOLVED

Error message: We can't delete one or more backups

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?

Tags (3)
4 REPLIES

Re: Error message: We can't delete one or more backups

@PavelSpesivtsev


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. 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: Error message: We can't delete one or more backups

@ShoaibRehman89, what would be the right command to delete one of the backup files from command line? Couldn't find it anywhere.

Re: Error message: We can't delete one or more backups

@PavelSpesivtsev

 

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. 

Magento Certified Solution Specialist | Lead Magento developer
If this response was helpful to you, consider giving kudos to this post

Re: Error message: We can't delete one or more backups

Update: I finally simply deleted backup files using FTP. The admin backend recognized this delete. So far, the system runs just fine.