Hello guys, back in the days I needed to make some free space on our hosting.
So I just selected attachments older than X days in our SQL table "attachments" then took the list of IDs and then deleted these IDs from the upload directory using my php script.
The problem is that the system started generating errors connected with attachments
I would like to ask you what is the safest way to delete these attachments to avoid errors afterward? I was thinking about instead of deleting it directly from the upload I could just change "deleted" in the SQL table to 1 and then run hard rebuild. Would it do the magic, please?
Thanks a lot for the tips.
So I just selected attachments older than X days in our SQL table "attachments" then took the list of IDs and then deleted these IDs from the upload directory using my php script.
The problem is that the system started generating errors connected with attachments
Code:
[2023-05-29 04:32:41] ERROR: (403) GET /; line: 69, file: /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/application/Espo/EntryPoints/Attachment.php [] [] [2023-05-29 04:32:41] ERROR: (403) GET /; line: 69, file: /data/0/f/0f6e82d6-07b5-42f8-803a-fad2758ce077/esmerozz.eu/web/application/Espo/EntryPoints/Attachment.php [] []
Thanks a lot for the tips.
Comment