Skip to content

Conversation

@mcfdez
Copy link
Contributor

@mcfdez mcfdez commented Dec 7, 2025

This pull request adds a new feature to allow users to clear old deployments for both applications and compose resources, keeping only the most recent successful deployment (or the latest if none are successful). It introduces backend logic to delete old deployment records and their logs, exposes new API endpoints, and updates the dashboard UI to provide a "Clear deployments" button. Additionally, it refines the icon usage for the cancel queues action.

Screenshots

image image image

Issues related

#3184

@mcfdez mcfdez requested a review from Siumauricio as a code owner December 7, 2025 11:41
@mcfdez mcfdez changed the title feat: add ability to delete old deployments feat(deployments): add ability to delete old deployments Dec 12, 2025
@Siumauricio
Copy link
Contributor

I think it would be easier to add a button next to each log with an icon to delete the current log. This would only apply to deployments in the done or error state.

@mcfdez
Copy link
Contributor Author

mcfdez commented Dec 18, 2025

I think it would be easier to add a button next to each log with an icon to delete the current log. This would only apply to deployments in the done or error state.

Hello @Siumauricio ,

Thank you for your feedback. You mean I could include a button here?

image

That way, individual records can be deleted. I think that's a good idea, I'll implement it.

However, it would be interesting to have a button for bulk deletion, wouldn't it?

@Siumauricio
Copy link
Contributor

I think it would be easier to add a button next to each log with an icon to delete the current log. This would only apply to deployments in the done or error state.

Hello @Siumauricio ,

Thank you for your feedback. You mean I could include a button here?

image That way, individual records can be deleted. I think that's a good idea, I'll implement it.

However, it would be interesting to have a button for bulk deletion, wouldn't it?

I prefer to have the removal for individual deployments

@mcfdez mcfdez force-pushed the feat/add-delete-old-deployments branch from d5c10ca to da32de0 Compare December 21, 2025 15:04
@mcfdez
Copy link
Contributor Author

mcfdez commented Dec 21, 2025

Hello @Siumauricio

I have implemented the functionality so that each deployment record can be deleted except for the last one, which is supposed to be the one that is currently active.

For now, I have kept the functionality of being able to delete all deployments (except the current one), but if you prefer me to remove it, let me know.

On the other hand, the file apps/dokploy/components/dashboard/application/deployments/show-deployments.tsx is quite large, and it might be a good idea to refactor it into smaller files, clearly defining the purpose of each one.

Bye!

@Eventyret
Copy link

I think this be really nice feature to tidy up, when you have multiple deployments all the time it's nice to keep things tidy and housekeeping +1

@mcfdez mcfdez force-pushed the feat/add-delete-old-deployments branch from e629bda to 1ca67cd Compare December 30, 2025 11:43
@mcfdez mcfdez force-pushed the feat/add-delete-old-deployments branch from 1ca67cd to e4baeb7 Compare January 9, 2026 06:15
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

Successfully merging this pull request may close these issues.

3 participants