@ -270,6 +270,9 @@ func (h *Handlers) HandleAPIDeleteApp() http.HandlerFunc {
|
||||
return
|
||||
}
|
||||
|
||||
// Stop and remove the Docker container before deleting the DB record
|
||||
h.cleanupContainer(request.Context(), appID, application.Name)
|
||||
|
||||
deleteErr := h.appService.DeleteApp(request.Context(), application)
|
||||
if deleteErr != nil {
|
||||
h.log.Error("api: failed to delete app", "error", deleteErr)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user