Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Switch services using the Version drop-down list. Learn more about navigation.
Applies to: ✅ Azure Data Explorer
Note
This feature is currently in public preview. Functionality and syntax are subject to change before General Availability.
Deletes a specific graph snapshot from a graph model.
Permissions
To run this command, the user needs Database Admin permissions or Graph admin permissions.
Syntax
.drop graph_snapshot GraphModelName.SnapshotName
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| GraphModelName | String | ✅ | The name of the graph model that the snapshot belongs to. |
| SnapshotName | String | ✅ | The name of the graph snapshot to drop. |
Returns
This command returns a table with the following columns:
| Column | Type | Description |
|---|---|---|
| Name | String | The name of the dropped snapshot. |
| SnapshotTime | DateTime | The time when the snapshot was created. |
| ModelName | String | The name of the graph model. |
| ModelId | String | The unique identifier of the graph model. |
| ModelCreationTime | DateTime | The time when the graph model was created. |
Examples
Drop a specific graph snapshot
.drop graph_snapshot SocialNetwork.OldSnapshot
Output
| Name | SnapshotTime | ModelName | ModelId | ModelCreationTime |
|---|---|---|---|---|
| Latest | 2025-05-21 10:47:05.9122575 | SomeGraph | eeeeeeee-4f4f-5a5a-6b6b-777777777777 | 2025-05-21 10:47:05.8611670 |
Notes
- The
.drop graph_snapshotcommand permanently deletes a specific graph snapshot. This operation can't be undone. - Before dropping a snapshot, ensure that no queries or processes are currently using it.
- Dropping a snapshot doesn't affect the graph model from which it was created.
- To drop all snapshots for a specific graph model, use the .drop graph_snapshots command.