cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
874
Views
0
Helpful
1
Replies

How to delete the Tenant in ACI from CLI

rajangahlout
Level 1
Level 1

Hi Team,
We have created the Tenant in ACI from APIC GUI, we also have created below items inside the Tenant:
1. contract
2. vrf
3. l3out (BGP)
4. bridge-domain

We want to delete the Tenant from APIC CLI, can you please help me with the steps and commands?

1 Accepted Solution

Accepted Solutions

hemohemoh
Level 1
Level 1

hey @rajangahlout!

This is just based on my research. Hope some other experts can chime in!

  1. Login into your APIC CLI.

  2. Get the Tenant's DN (Distinguished Name) using the following command:
    apic1# moquery -c fvTenant -f 'fv.Tenant.name=="your-tenant-name"'

    Replace "your-tenant-name" with the name of your tenant. This command will return the Tenant's DN.

  3. You can then delete the Tenant using the following command:
    apic1# config
    apic1(config)# mo del 'uni/tn-your-tenant-name'
    Replace "your-tenant-name" with the name of your tenant.

  4. To save the changes, use the following command:
    apic1(config)# commit

 

 

Make sure to back up your tenant. This operation is irreversible and once deleted, you cannot recover the data.

View solution in original post

1 Reply 1

hemohemoh
Level 1
Level 1

hey @rajangahlout!

This is just based on my research. Hope some other experts can chime in!

  1. Login into your APIC CLI.

  2. Get the Tenant's DN (Distinguished Name) using the following command:
    apic1# moquery -c fvTenant -f 'fv.Tenant.name=="your-tenant-name"'

    Replace "your-tenant-name" with the name of your tenant. This command will return the Tenant's DN.

  3. You can then delete the Tenant using the following command:
    apic1# config
    apic1(config)# mo del 'uni/tn-your-tenant-name'
    Replace "your-tenant-name" with the name of your tenant.

  4. To save the changes, use the following command:
    apic1(config)# commit

 

 

Make sure to back up your tenant. This operation is irreversible and once deleted, you cannot recover the data.