From 5222bd314992aa17cab2a0e3d549586e6a844b5c Mon Sep 17 00:00:00 2001 From: Frederick Muriuki Muriithi Date: Mon, 22 Jun 2026 13:05:46 -0500 Subject: Delete the credentials files since they are no longer needed. --- gn_auth/wsgi.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gn_auth/wsgi.py') 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 ##### -- cgit 1.4.1