Skip to main content
DELETE
https://sandbox.getcollate.io/api
/
v1
/
lineage
/
{fromEntity}
/
{fromId}
/
{toEntity}
/
{toId}
DELETE /v1/lineage/{fromEntity}/{fromId}/{toEntity}/{toId}
from metadata.generated.schema.type.entityLineage import EntitiesEdge
from metadata.generated.schema.type.entityReference import EntityReference
from metadata.ingestion.ometa.ometa_api import OpenMetadata
from metadata.generated.schema.entity.services.connections.metadata.openMetadataConnection import (
    OpenMetadataConnection,
)
from metadata.generated.schema.security.client.openMetadataJWTClientConfig import (
    OpenMetadataJWTClientConfig,
)

server_config = OpenMetadataConnection(
    hostPort="https://your-company.getcollate.io/api",
    authProvider="openmetadata",
    securityConfig=OpenMetadataJWTClientConfig(
        jwtToken="<YOUR-JWT-TOKEN>"
    ),
)
metadata = OpenMetadata(server_config)

# Delete a lineage edge
edge = EntitiesEdge(
    fromEntity=EntityReference(id=source_table.id, type="table"),
    toEntity=EntityReference(id=target_dashboard.id, type="dashboard"),
)

metadata.delete_lineage_edge(edge=edge)
200 OK

Delete Lineage

Remove an existing lineage edge between two entities.

Path Parameters

fromEntity
string
required
Entity type of the source (e.g., table, dashboard, pipeline).
fromId
string
required
UUID of the source entity.
toEntity
string
required
Entity type of the destination (e.g., table, dashboard, pipeline).
toId
string
required
UUID of the destination entity.
DELETE /v1/lineage/{fromEntity}/{fromId}/{toEntity}/{toId}
from metadata.generated.schema.type.entityLineage import EntitiesEdge
from metadata.generated.schema.type.entityReference import EntityReference
from metadata.ingestion.ometa.ometa_api import OpenMetadata
from metadata.generated.schema.entity.services.connections.metadata.openMetadataConnection import (
    OpenMetadataConnection,
)
from metadata.generated.schema.security.client.openMetadataJWTClientConfig import (
    OpenMetadataJWTClientConfig,
)

server_config = OpenMetadataConnection(
    hostPort="https://your-company.getcollate.io/api",
    authProvider="openmetadata",
    securityConfig=OpenMetadataJWTClientConfig(
        jwtToken="<YOUR-JWT-TOKEN>"
    ),
)
metadata = OpenMetadata(server_config)

# Delete a lineage edge
edge = EntitiesEdge(
    fromEntity=EntityReference(id=source_table.id, type="table"),
    toEntity=EntityReference(id=target_dashboard.id, type="dashboard"),
)

metadata.delete_lineage_edge(edge=edge)
200 OK

Returns

Returns 200 OK with no body on successful deletion.

Error Handling

CodeError TypeDescription
401UNAUTHORIZEDInvalid or missing authentication token
403FORBIDDENUser lacks permission to delete lineage
404NOT_FOUNDLineage edge between the specified entities does not exist