-
I saw an old answered question but I thought that I might ask the same as in 2 years things can change. How can I delete all old production deployments? The reason is just to remove all unused deployments and keep things clean and tidy :) |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
Good question @sebalaini! The fastest way, if you're okay with deleting all but the single most recent production and preview deployments, is to use You can use the API to list deployments and loop through the list to delete individual deployments. Or you can use |
Beta Was this translation helpful? Give feedback.
-
Thanks, @amyegan that works perfectly for me :) |
Beta Was this translation helpful? Give feedback.
-
You can now configure the retention period for deployments through the dashboard and CLI. For example, canceled and errored deployments might be set to 30 days retention, while production deployments might be set to 1 year. Recently deleted deployments are shown in your project settings and can be instantly restored within 30 days of deletion. Learn more in our documentation. |
Beta Was this translation helpful? Give feedback.
-
This discussion was automatically locked because the community moved to a new site. Please join us at vercel.community |
Beta Was this translation helpful? Give feedback.
You can now configure the retention period for deployments through the dashboard and CLI.
For example, canceled and errored deployments might be set to 30 days retention, while production deployments might be set to 1 year. Recently deleted deployments are shown in your project settings and can be instantly restored within 30 days of deletion.
Learn more in our documentation.