Temporary Preview Sites: A Feature Suggestion ⏳

Hello community! :wave:

We generate preview sites for users to check their content before final deployment. One challenge we face:

We need a way to automatically expire preview sites — for example, after 24 hours.

  • This would clean up temporary environments.
  • It ensures preview sites don’t persist unnecessarily.

If Netlify could support an “auto-expiry” flag for deployments via the API, it would be an absolute game-changer for workflows like ours.

You should be able to achieve this via Scheduled Functions.

Thanks for the suggestion. Let me spike with more details for the further discussion.

1 Like