Delete content
DELETE
v2/hubs/{hubId}/contents/{contentId}
Deletes an existing content item in the specified hub
Resource Information
| Method and URI | DELETE https://api.aps.autodesk.com/content-catalog/v2/hubs/{hubId}/contents/{contentId} |
| Authentication Context | user context required |
| Required OAuth Scopes | data:write |
| Data Format | JSON |
Request
Headers
| Authorization* string | Must be Bearer <token>, where <token> is a three-legged access token obtained via an
Authorization Code flow
or a Secure Service Account flow.
The Secure Service Account (SSA) flow is designed for headless server-to-server operations. While it functions like a two-legged flow (no user interaction), it is classified as three-legged because it preserves user context. |
| Region string | Region identifier for API routing. Defaults to US if not provided. |
* Required
Request
URI Parameters
| hubId string | Unique identifier for a customer hub (UUID format, uppercase) |
| contentId string | Unique identifier for the content item |
Response
HTTP Status Code Summary
| 204 No Content | Content successfully deleted |
| 403 Forbidden | The request was successfully validated, but lacking the required permissions. Verify your credentials and permissions before you send the request again. |
| 404 Not Found | The requested resource was not found. Review the request and try again. |
| 500 Internal Server Error | An unexpected error occurred on the server, preventing it from completing your request. Please try again later. If the issue persists, contact the support team for assistance. |
Response
Body Structure (204)
Response for 204 has no body.
Example
Content successfully deleted
Request
curl -v 'https://developer.api.autodesk.com/content-catalog/v2/hubs/3BB2AB76-42A9-4E02-8D66-B8779A0DD0CF/contents/550e8400-e29b-41d4-a716-446655440001' \
-X 'DELETE' \
-H 'Authorization: '
Response
204 No Content