def delete(self, force_drop=False, *args, **kwargs):
        if connection.schema_name not in (self.schema_name, get_public_schema_name()):
            raise Exception("Can't delete tenant outside it's own schema or "
                            "the public schema. Current schema is %s."
                            % connection.schema_name)

        if schema_exists(self.schema_name) and (self.auto_drop_schema or force_drop):
            cursor = connection.cursor()
            cursor.execute('DROP SCHEMA %s CASCADE' % self.schema_name)

        super(TenantMixin, self).delete(*args, **kwargs)
Deletes this row. Drops the tenant's schema if the attribute
dataset/ETHPy150Open tomturner/django-tenants/django_tenants/models.py/TenantMixin.delete