Skip to main content
DELETE
Delete asset group

Overview

Delete an asset group from your organization. When a group is deleted, all assets assigned to that group become ungrouped. The assets themselves are not deleted - only their group assignment is removed.

Quick Start

Authentication

Include your API key in the X-API-KEY header:

Example Request

Path Parameters

Request Body

Response

Success Response

Response Fields

Error Responses

400 Bad Request

Returned when the request is malformed:

401 Unauthorized

Returned when the API key is missing, invalid, or doesn’t have organization access:

403 Forbidden

Returned when the group doesn’t belong to your organization:

404 Not Found

Returned when the group doesn’t exist or was already deleted:

Best Practices

Confirm Before Deletion

Always confirm before deleting a group, especially if it contains assets:

Reassign Assets Before Deletion

Move assets to a different group before deleting:

Bulk Delete with Filtering

Delete multiple groups based on criteria:

Audit Trail

Log group deletions for compliance:

Use Cases

Clean Up Unused Groups

Remove groups that haven’t been used in a while:

Consolidate Groups

Delete old groups and merge their assets into a new group:

Interactive Deletion

Provide an interactive interface for group deletion:

Common Error Messages

Notes

  • Deleting a group does not delete the assets - they become ungrouped
  • The unassignedAssetCount in the response shows how many assets were affected
  • Organization is automatically determined from your API key
  • The group ID must match in both the URL path and request body
  • Empty groups (with 0 assets) can be safely deleted without side effects
  • This operation cannot be undone - consider exporting group data before deletion
  • Ungrouped assets can be reassigned to groups at any time using the update asset endpoint

Authorizations

X-API-KEY
string
header
required

Your API key. This is required by most endpoints to access our API programatically. Reach out to us at support@chainpatrol.io to get an API key for your use.

Path Parameters

groupId
integer
required

ID of the group to delete

Required range: x > 0

Response

Successful response

Delete operation result

success
boolean
required

Whether the group was deleted successfully

id
number
required

Group ID that was deleted

unassignedAssetCount
number
required

Number of assets that were unassigned from this group