View Full Version : Request queries code to delete files in the folder attachment in the host root
sat2006
02-10-2016, 05:10 PM
Hello,
I need code queries
To
Compare the host files and database files
A large number of file attachments folder, which is not in the database
And a large volume of occupied disk
I want to delete files added by this command.
Attachment Folder Size 100 GB
Size 80 GB of attachments in the database.
#cleanup2# have been drawn.
4.2.3vb
5.4php
tankyou
You can't delete physical files with a SQL query. A custom script has to be written to delete orphan attachments.
http://www.vbulletin.com/forum/forum/vbulletin-4/vbulletin-4-questions-problems-and-troubleshooting/405908-automatically-remove-orphaned-attachments
https://vborg.vbsupport.ru/showthread.php?t=195879
sat2006
02-10-2016, 10:11 PM
hello,
I run two threads
But not
And still remains files
I need a plugin
for comparison
Add and delete files
I really appreciate your efforts in helping me,
Any script or idea is badly needed.
Where do I find custom script has to be written to delete orphan attachments???
Coder/Designer
A custom script has to be written to delete orphan attachments.
Your best bet is to pay someone to do this for you.
sat2006
02-10-2016, 11:22 PM
Your best bet is to pay someone to do this for you.
can you?
Are you doing?
TheLastSuperman
02-11-2016, 10:10 PM
can you?
Are you doing?
He does custom work yes but you must PM him to discuss, you cannot discuss paid work in any forum other than paid request (this is unpaid request forum currently).
Edit: Also unless you setup this script under the root account (not advised imo) then any other user setup I don't believe will have access to delete files in the main folder i.e. the one above /public_html/ such as /home/ACCOUNTNAME/public_html/ if attachments are in fact stored there (which is recommended) however I might be wrong on assuming such so don't hold me to it :p.
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.