src/Tenant/Service/TenantService.php
public function unload(Tenant $tenant): TenantService
    {
        $this->disable('tenant');
        $connection = $this->manager->getConnection();
        $connection->beginTransaction();

        try {
            foreach ($this->unloaderCollection as $unloader) {
                $unloader->unload($tenant);
            }

            $connection->commit();
        } catch (Exception $exception) {
            $connection->rollBack();
            throw $exception;
        }

        $this->enable('tenant');

        return $this;
    }
public function unload(Tenant $tenant): TenantService
    {
        $this->disable('tenant');
        $connection = $this->manager->getConnection();
        $connection->beginTransaction();

        try {
            foreach ($this->unloaderCollection as $unloader) {
                $unloader->unload($tenant);
            }

            $connection->commit();
        } catch (Exception $exception) {
            $connection->rollBack();
            throw $exception;
        }

        $this->enable('tenant');

        return $this;
    }
Unload tenant

@param \Ds\Component\Tenant\Entity\Tenant
@return \Ds\Component\Tenant\Service\TenantService
@throws Exception