delete user from python supabase client #19222
Replies: 3 comments 3 replies
-
Supabase's Python client does not directly provide the ability to delete users. This is because Supabase is a database-as-a-service (DBaaS), which does not directly manage user accounts, but focuses on processing and storing data. Deleting users is typically done in your application's account system, not in Supabase itself. However, if you need to perform this operation in Supabase, you may need to use Supabase's API client. The Supabase API provides complete control over the database, including deleting records. First, you need to install supabase-python-client, which is a Python client library for interacting with the Supabase API. You can install it using pip: Bash Here is an example code snippet: Initialize Supabase clientsupabase = SupabaseClient(base_url='YOUR_SUPABASE_URL', key='YOUR_SUPABASE_KEY') Initialize API clientapi_client = APIClient(supabase) Find the user ID you want to deleteuser_id = 'THE_USER_ID_YOU_WANT_TO_DELETE' try: |
Beta Was this translation helpful? Give feedback.
-
supabase AI also giving all wrong solutions |
Beta Was this translation helpful? Give feedback.
-
ERROR: Could not find a version that satisfies the requirement supabase-python-client (from versions: none) Not even able to install the client |
Beta Was this translation helpful? Give feedback.
-
delete user from python supabase client getting error AttributeError: 'SupabaseAuthClient' object has no attribute 'delete_user'
Beta Was this translation helpful? Give feedback.
All reactions