public function revert()
    {
        switch ($this->serviceGroupType) {
            case ServiceTypeGroups::DATABASE:
                if ($this->resourceExists('_schema/' . $this->resource)) {
                    /** @var \DreamFactory\Core\Contracts\ServiceResponseInterface $rs */
                    $rs = ServiceManager::handleRequest(
                        $this->service->getName(),
                        Verbs::DELETE,
                        '_schema/' . $this->resource
                    );
                    if ($rs->getStatusCode() === HttpStatusCodes::HTTP_OK) {
                        return true;
                    }
                    $content = $rs->getContent();
                    Log::error(
                        'Failed to delete table on import failure: ' .
                        (is_array($content) ? print_r($content, true) : $content)
                    );
                    throw new InternalServerErrorException('Failed to delete table on import failure. See log for details.');
                }
                break;
            default:
                throw new InternalServerErrorException('An Unexpected error occurred.');
        }
    }