A Sandcastle Documented Class Library

# IMultiTenancyService DeleteTenant Method

Deletes the tenant with the specified ID.

Namespace: Dundas.BI.AccountServices.MultiTenancy
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    void DeleteTenant(
    	Guid id
    )

    Sub DeleteTenant (
    	id As Guid
    )

    void DeleteTenant(
    	Guid id
    )

    abstract DeleteTenant :
            id : Guid -> unit

#### Parameters

id
  Type: System
  Guid
  The ID of the tenant to delete.

Exceptions

Exception | Condition
--- | ---
ArgumentException | id is Empty.
NotFoundException | A tenant with the given ID does not exist.
FeatureNotEnabledException | The multi-tenancy features of the application are not enabled.
NoPrivilegeException | The caller does not have system administration privileges.
InvalidSessionException | The caller context is not associated with a valid session.

Remarks
When a tenant is deleted, any associated projects, sessions, accounts, and groups are also deleted.
See Also

#### Reference

IMultiTenancyService Interface
Dundas.BI.AccountServices.MultiTenancy Namespace