code: public void deleteTenant(String tenantName, Map<String, String> options) {
          checkServiceState();
          TenantDefinition tenantDef = getTenantDef(tenantName);
          if (tenantDef == null) {
              return;
          }
          
          Tenant tenant = new Tenant(tenantDef);
          try {
              DBService.instance(tenant).dropNamespace();
          } catch (RuntimeException e) {
              if (options == null || !"true".equalsIgnoreCase(options.get("ignoreTenantDBNotAvailable"))) {
                  throw e;
              }
              m_logger.warn("Drop namespace skipped for tenant '{}'", tenantName);
          }
          
          // Delete tenant definition in default database.
          Tenant defaultTenant = getDefaultTenant();
          DBTransaction dbTran = new DBTransaction(defaultTenant);
          dbTran.deleteRow(TENANTS_STORE_NAME, tenantName);
          DBService.instance(defaultTenant).commit(dbTran);
          DBManagerService.instance().deleteTenantDB(tenant);
      }
docs: Delete an existing tenant with the given options. The tenant's keyspace is dropped,
  which deletes all user and system tables, and the tenant's users are deleted. The
  given options are currently used for testing only. This method is a no-op if the
  given tenant does not exist.
  
  @param tenantName    Name of tenant to delete.