src/Resources/DbSchemaResource.php
public function deleteRelationship($table, $relationship)
    {
        if (empty($table)) {
            throw new BadRequestException('Table name can not be empty.');
        }

        // does it already exist
        if (!$this->doesTableExist($table)) {
            throw new NotFoundException("A table with name '$table' does not exist in the database.");
        }

        try {
            $tableSchema = $this->parent->getTableSchema($table);
            if ($resource = $tableSchema->getRelation($relationship)) {
                if ($resource->isVirtual) {
                    $this->removeSchemaVirtualRelationships($table, [$resource->toArray()]);
                } else {
                    $this->parent->getSchema()->dropRelationship($tableSchema->quotedName, $resource);
                }
                $this->removeSchemaExtrasForRelated($table, $relationship);
            }
        } catch (\Exception $ex) {
            error_log($ex->getMessage());
            throw $ex;
        }

        //  Any changes here should refresh cached schema
        $this->refreshCachedTables();

        return ['name' => $relationship];
    }
public function deleteRelationship($table, $relationship)
    {
        if (empty($table)) {
            throw new BadRequestException('Table name can not be empty.');
        }

        // does it already exist
        if (!$this->doesTableExist($table)) {
            throw new NotFoundException("A table with name '$table' does not exist in the database.");
        }

        try {
            $tableSchema = $this->parent->getTableSchema($table);
            if ($resource = $tableSchema->getRelation($relationship)) {
                if ($resource->isVirtual) {
                    $this->removeSchemaVirtualRelationships($table, [$resource->toArray()]);
                } else {
                    $this->parent->getSchema()->dropRelationship($tableSchema->quotedName, $resource);
                }
                $this->removeSchemaExtrasForRelated($table, $relationship);
            }
        } catch (\Exception $ex) {
            error_log($ex->getMessage());
            throw $ex;
        }

        //  Any changes here should refresh cached schema
        $this->refreshCachedTables();

        return ['name' => $relationship];
    }
Delete a table field

@param string $table
@param string $relationship

@throws \Exception
@return array