Merge pull request #2418 from caprover/agent/remove-delete-name-validation
Run build / build (push) Has been cancelled
Run formatter / check-code-formatting (push) Has been cancelled
Run lint / run-lint (push) Has been cancelled
Build and push the edge image / run-pre-checks (push) Has been cancelled
Build and push the edge image / build-publish-docker-hub (push) Has been cancelled

Allow deleting apps with legacy names
This commit is contained in:
Kasra Bigdeli
2026-07-18 22:55:49 -07:00
committed by GitHub
-10
View File
@@ -869,16 +869,6 @@ class AppsDataStore {
const self = this
return new Promise<void>(function (resolve, reject) {
if (!isNameAllowed(appName)) {
reject(
ApiStatusCodes.createError(
ApiStatusCodes.STATUS_ERROR_BAD_NAME,
'App Name is not allowed. Only lowercase letters, numbers and single hyphens are allowed'
)
)
return
}
if (!self.data.get(`${APP_DEFINITIONS}.${appName}`)) {
reject(
ApiStatusCodes.createError(