diff --git a/plugins/common/common.go b/plugins/common/common.go index 0050ce460..a4636e950 100644 --- a/plugins/common/common.go +++ b/plugins/common/common.go @@ -406,11 +406,6 @@ func IsValidAppName(appName string) error { return nil } - appRoot := AppRoot(appName) - if DirectoryExists(appRoot) { - os.RemoveAll(appRoot) - } - return errors.New("App name must begin with lowercase alphanumeric character, and cannot include uppercase characters, colons, or underscores") } diff --git a/plugins/common/functions b/plugins/common/functions index fbf9eaf5d..88146de85 100755 --- a/plugins/common/functions +++ b/plugins/common/functions @@ -190,7 +190,6 @@ is_valid_app_name() { fi fi - [[ -d "$DOKKU_ROOT/$APP" ]] && rm -rf "${DOKKU_ROOT:?}/$APP" dokku_log_fail "App name must begin with lowercase alphanumeric character, and cannot include uppercase characters, colons, or underscores" }