• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.1 Orphan attachments cleaning?

daviden

Active member
#1
Got a lot of images that has been uploaded but not attached to a message.
Is there a way to clean them out? Just taking up space on my VPS...

E g: expy.JPG in the screenshot don't have any host content... Just taking up space.

Skärmavbild 2014-03-02 kl. 20.55.28.png
 

Mike

XenForo developer
Staff member
#2
Orphaned attachments are already cleaned up automatically. An attachment like that is likely attached to a post that wasn't made. It will be cleaned up (after 24 hours I believe).
 

daviden

Active member
#3
Orphaned attachments are already cleaned up automatically. An attachment like that is likely attached to a post that wasn't made. It will be cleaned up (after 24 hours I believe).
That's what I thought too.
I ran the cronjob for cleanup manually - file is still there...
 

Mike

XenForo developer
Staff member
#4
Running the cron will only remove files that it thinks it should remove. If it removed every file that related to an in progress post, you have the potential of composing a post while the cron runs and losing your attachment silently.

Check back in 24-48 hours to see if it's still there.
 

daviden

Active member
#5
Running the cron will only remove files that it thinks it should remove. If it removed every file that related to an in progress post, you have the potential of composing a post while the cron runs and losing your attachment silently.

Check back in 24-48 hours to see if it's still there.
Ok. Thanks! :)