Delete asset group
Organization Asset Groups
Delete Organization Asset Group
Delete an asset group. Assets in this group will become ungrouped.
DELETE
Delete asset group
Documentation Index
Fetch the complete documentation index at: https://chainpatrol-knowledge-update-hosting-providers-list-1775664.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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 theX-API-KEY header:
Example Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| groupId | number | Yes | ID of the group to delete |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| groupId | number | Yes | ID of the group to delete (must match path parameter) |
Response
Success Response
Response Fields
| Field | Type | Description |
|---|---|---|
| success | boolean | Always true for successful deletions |
| id | number | ID of the deleted group |
| unassignedAssetCount | number | Number of assets that were in the group (now ungrouped) |
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
| Error Message | Cause | Resolution |
|---|---|---|
| Group with ID not found | Invalid group ID or already deleted | Verify the group ID exists |
| Group does not belong to your organization | Group belongs to a different organization | Use a group ID from your organization |
| Group ID is required | Missing groupId field in request | Provide a groupId field |
| Path parameter groupId does not match body | Mismatch between URL and body group IDs | Ensure both group IDs match |
Notes
- Deleting a group does not delete the assets - they become ungrouped
- The
unassignedAssetCountin 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
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
ID of the group to delete
Required range:
x > 0