In my uploads/upgrades/patch folder are stored the files and folder that were necessary to upgrade SugarCRM, and then SuiteCRM over time to the new versions.
Now these files and folders are for me useless and I would like to delete them but I haven’t found a clear statement that says that it is safe to delete them.
I would like to keep only those regarding the latest upgrade to SuiteCRM 7.8.2, just in case something wrong happens (and. in any case we regularly back everything up)
Does anyone know if I may damage my system by deleting the files and folders in my list above?
I have already deleted all those that were listed in the upload step of the upgrade wizard but (apart from the one of those listed in my post) the others are not visible in the upgrade wizard.
I guess that deleting them (in any case I have full weekly backups of everything) shouldn’t do any harm but, before doing so I thought it would be better to ask if anybody knew if there is something against the deletion.
In my experience (which is not much) they are completely safe to delete.
The restore directories contain the files that are overwritten when the installer copies new files. This means that the installer never simply overwrites, it copies the files to another location and only then places the new file in place. This might be useful in case you need to keep something from those files (some non-upgrade safe customization). But this is probably not frequent.
These patches are referenced from a table in MySQL called upgrade_history. I usually leave the rows there, I don’t delete them. I think they are just that - history. But if I ran into problems that would be the first thing I would check.
Maybe other people know more about this? Feel free to join the discussion.
Just as information. One of my installations was using a lot of space after so many upgrades. Today, I went to removed files on that folder.
Good news. All is good so far.
The only files I left were the files from the last upgrade. Just in case I need them in the future.