In internal/handlers/app.go, HandleAppDelete() only calls application.Delete(ctx) which removes the database record. It does not stop or remove the running Docker container. After deletion, the container continues running as an orphan with no way to manage it through upaas.
Impact
Orphaned containers consume resources indefinitely. Users expect deleting an app to clean up all its resources.
Location
internal/handlers/app.go - HandleAppDelete()
Fix
Before deleting the database record, find and remove the app's Docker container using FindContainerByAppID.
## Description
In `internal/handlers/app.go`, `HandleAppDelete()` only calls `application.Delete(ctx)` which removes the database record. It does not stop or remove the running Docker container. After deletion, the container continues running as an orphan with no way to manage it through upaas.
## Impact
Orphaned containers consume resources indefinitely. Users expect deleting an app to clean up all its resources.
## Location
`internal/handlers/app.go` - `HandleAppDelete()`
## Fix
Before deleting the database record, find and remove the app's Docker container using `FindContainerByAppID`.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Description
In
internal/handlers/app.go,HandleAppDelete()only callsapplication.Delete(ctx)which removes the database record. It does not stop or remove the running Docker container. After deletion, the container continues running as an orphan with no way to manage it through upaas.Impact
Orphaned containers consume resources indefinitely. Users expect deleting an app to clean up all its resources.
Location
internal/handlers/app.go-HandleAppDelete()Fix
Before deleting the database record, find and remove the app's Docker container using
FindContainerByAppID.