Hi there, is it possible to remove a tenant from t...
# prefect-ui
b
Hi there, is it possible to remove a tenant from the UI through the UI or CLI?
n
Hi @Blake List - are you using Prefect Server or Prefect Cloud?
b
Hi @nicholas, I am using Prefect Server
n
Got it @Blake List - in which case you should be able to run this from the InteractiveAPI:
Copy code
mutation {
  delete_tenant(input: {tenant_id: "<<>>", confirm:true}) {
    success
    error
  }
}
replacing the
<<>>
with the if of the tenant you're trying to remove
🙌 1
b
@nicholas Any idea how to get the tenant_id?
n
Sure, you can query for it in the interactive api like this:
Copy code
query {
  tenant { 
    id
    name
  }
}
b
Is there a way to list the names of the tenants also?
n
sure, just add
name
to that query (i've added it)
b
Ah great I see how it all works now. Thank you very much!!
n
Happy to help!