diff options
Diffstat (limited to 'gn_auth')
| -rw-r--r-- | gn_auth/wsgi.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gn_auth/wsgi.py b/gn_auth/wsgi.py index ec47201..4fc9bd0 100644 --- a/gn_auth/wsgi.py +++ b/gn_auth/wsgi.py @@ -469,6 +469,7 @@ def delete_oauth2_client(credentials_path): print(f"No client found with ID {client_id}", file=sys.stderr) sys.exit(1) delete_client(conn, the_client.value) + os.unlink(credentials_path) print(f"Deleted OAuth2 client {client_id}.") @@ -494,6 +495,7 @@ def delete_test_users(credentials_path): with db.connection(app.config["AUTH_DB"]) as conn: deleted = delete_users_by_id(conn, user_ids) + os.unlink(credentials_path) print(f"Deleted {deleted} user(s).") ##### END: CLI Commands ##### |
