Can this plugin delete orphan attachment via cron job?

Author
Topic
#3147

I seem to be having difficulty making this happen

Viewing 5 replies - 1 through 5 (of 5 total)
Author
Replies
  • #3148

    Scheduled cleanup can be used for Cleanup tools only. Removal tools can’t be scheduled. Removal tools are considered destructive, because you are removing some data that might be used.

    As for orphaned attachments, this is very bad idea to remove. Even if file is not attached, it might still be used in some posts. There is no way to know this.

    Milan

  • #3150

    Ok — thank you.

  • #3151

    In this case, it’s a short-term custom post type that we absolutely will never want to use again, and it’s crucial that the attachments are deleted ASAP.

  • #3152

    Right now I don’t plan to add this to the plugin because there is no way to know if attachment is in use or not, and I am sure that a lot of users will see and use that cleanup tool and will remove attachments that they actually use, even if they are not attached, and later they will blame me for loosing data.

  • #3153

    Smart man! Plugin is great, otherwise, I’ve got no complaints.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Can this plugin delete orphan attachment via cron job?’ is closed to new replies.