Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate deleting assets #17

Open
colbyfayock opened this issue Jun 14, 2024 · 3 comments
Open

Automate deleting assets #17

colbyfayock opened this issue Jun 14, 2024 · 3 comments

Comments

@colbyfayock
Copy link
Contributor

colbyfayock commented Jun 14, 2024

GitHub Action? how do you track an asset was tagged as deleted 30 days ago? metadata?

@nickytonline
Copy link
Contributor

nickytonline commented Jun 16, 2024

Metadata sounds like a good approach. Instead of a GitHub Action, since this is deployed to Vercel, you could opt to use their cron job feature.

Happy to assist once I've done the speed run of the course. 😅

@colbyfayock
Copy link
Contributor Author

thats not a bad idea!

that would definitely be a simpler and cleaner approach, though my only consideration there is that would drive Vercel costs up (to more quickly reach free tier) where GitHub Actions are largely free

wdyt?

@colbyfayock
Copy link
Contributor Author

i have this repo that i use for automating cleanup of example projects i have to avoid them being stored and linked to

https://github.com/colbyfayock/cloudinary-cron/blob/main/.github/workflows/media-library-cleanup.yml
https://github.com/colbyfayock/cloudinary-cron/blob/main/src/media-library-cleanup.js

just showing it as an example of how ive done it. it would need to check that metadata like you mentioned to ensure it was 30 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants