I inherited a CraftCMS project and there are currently close to 1200 obseletes pdf documents, still present in the site assets. The documents are stored in an S3 Bucket.

What is the best way to do this without having to do it manually in Craft backend?

Can I delete the documents (after making a backup...) directly from the bucket and ask Craft to reindex the bucket's contents?

Thanks for any suggestions you may have.

1 Answer 1


Yes, if you delete the assets from the S3 bucket and then have Craft re-index assets then they will be removed from the Craft assets directory. You'll probably want to grab a copy of the DB also, in case it becomes clear that those assets were actually in use somewhere!

  • Thank you Seth!
    – PatCraft
    Commented Apr 22 at 14:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.