Hello. Sorry if it’s wrong chat, but did someone figured out the solution?
Hey there! Make sure your message includes the following information if relevant, so we can help more effectively!
- Which DataHub version are you using? (e.g. 0.12.0)
- Please post any relevant error logs on the thread!
Could you please try by specifying the --platform
datahub delete --platform airflow --entity-type dataProcessInstance
<@U0445MUD81W> thanks for your advice, but it also didn’t work.
We ingest entities (platforms, dataFlow/dataJob objects etc) using python SDK from scripts, so it’s not an airflow.
However I tried this command (‘geo’ is our custom platform, which we ingested before):
[2024-05-09 17:06:24,120] INFO {datahub.cli.delete_cli:341} - Using DataHubGraph: configured to talk to <http://localhost:8080>
Found no urns to delete. Maybe you want to change your filters to be something different?```
However, such platform exists, and there are dataProcessInstance objects created for tasks in it:
```datahub delete by-filter --dry-run --platform geo
[...]
[Dry-run] Would delete 2120 entities (impacts 2120 versioned rows and 0 timeseries aspect rows).```
The only way I found working is deleting each dataProcessInstance entity by full `--urn`, which can be copied from browser. This deletes the run from run history. It’s obvious that it’s not really useful :disappointed: .
other solution I can suggest GQL
- get all URN’s by platform & entity type
- delete using urn
Here are the queries
search(input: {type: DATA_PROCESS_INSTANCE,
query: "*", start: 0, count: 1000
orFilters: [
{
and: [
{
field: "platform"
values: ["geo"]
condition: CONTAIN
}
]
}
]
}
){
start
count
total
searchResults {
entity {
urn
... on DataProcessInstance {
urn
name
}
}
}
}
}```
deleteQuery(urn:"<urn>")
}```
<@U0445MUD81W> the same thing as from CLI – it doesn’t find any dataProcessInstance there… . But thanks for an idea.

just this query
search(input: {type: DATA_PROCESS_INSTANCE,
query: "*", start: 0, count: 10
}
){
start
count
total
searchResults {
entity {
urn
... on DataProcessInstance {
urn
name
}
}
}
}
}```