Delete content
/km/api/v1/content/{id}
This method deletes all versions of all translations of the specified Content object from the Oracle Knowledge repository.
NOTE:The logged-in user must have the DELETE privilege to delete documents from the repository.
The DELETE method performs the following:
- Deletes a document in all the versions of all the locales.
- Deletes a document irrespective of the documentation status, such as DRAFT, PENDING PUBLISHED, or PUBLISHED.
- Deletes the following object types that are associated to a content object:
- Tasks
- Content Recommendations
- Subscriptions
- Content History
- Survey Results
Response Errors
The service does not display any warning message before deleting a document from the repository. If an error occurs during an attempt to delete, the content is not deleted. The following errors can occur:
- OKDOM-CONT0001
The error occurs when the specified document is in checked out state.
- OKDOM-GEN0001
The error occurs when the specified id parameter is invalid.
Request
-
id: string
The unique identifier of the object to be deleted.
Response
204 Response
Examples
The following example shows how to delete all versions of all the translations of the specified Content object.
curl -X "DELETE" "https://<IM_REST_API_HOST>/km/api/latest/content/{id}" -u "<username:password>" -H "Accept: application/json" -H "Content-Type: application/json"
Example of Response Body
The following example shows the contents of the response body in JSON format:
This request does not return any response body.