DeleteQueryDefinition Method
Deletes the
ArcGIS.Core.CIM.CIMKnowledgeGraphQueryDefinition with the specified name from this investigation. This method must be called on the MCT. Use QueuedTask.Run.
Delete a Query Definition
{
// access the currently active knowledge graph investigation view
KnowledgeGraphInvestigationView activeView = KnowledgeGraphInvestigationView.Active;
KnowledgeGraphInvestigation investigation = activeView?.Investigation;
if (investigation != null)
{
await QueuedTask.Run(() =>
{
// delete the query definition
investigation.DeleteQueryDefinition("Query1");
});
}
}
Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)
ArcGIS Pro version: 3.7 or higher.