DROP TENANT
- Last Updated: March 30, 2020
- 1 minute read
- OpenEdge
- Version 12.2
- Documentation
Deletes a tenant from a multi-tenant database.
Syntax
|
Parameters
- tenant_name
-
Specifies the name of the tenant you want to delete. The name of the tenant must exist in the database.
-
owner_name -
Specifies the name of the schema which qualifies the table.
Notes
Each database contains users, domains, and tenants. A DBA must follow the order specified below to drop a tenant from the database:
- DROP USER for every user in the domain.
- DROP DOMAIN for every domain defined for the tenant.
- DROP TENANT.
Example
The following example shows how to drop the tenant, mtcustomer, from the
multi-tenant table:
|
If a tenant that is being dropped belongs to one or more groups, it is first disassociated from the group(s) before being dropped.