Delete

delete

/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 its status such as DRAFT, PENDING PUBLISHED, or PUBLISHED.
  • In addition to deleting the content itself, this method will also delete any associated:
    • Tasks
    • Content Recommendations
    • Subscriptions
    • Content History
    • Survey Results
    • AQI Scores

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 id parameter is invalid.

Request

Path Parameters
  • The unique identifier of the object to be deleted.
Back to Top

Response

204 Response

No Content.
Back to Top

Examples

The following example shows how to delete all versions of all the translations of the specified Content object.

curl -X "DELETE" "http://<IM_REST_API_HOST>/km/api/latest/content/{id}"

Example of Response Header

The following shows an example of the response header.

-H "kmauthtoken: {\"siteName\":\"ORACLE_KNOWLEDGE\",\"integrationUserToken\":\"\"+eCJYkxKwj5HUaIiJYun0/TpatwT1LmtcsF05W33xnEojifV/AsLDj9RpN0lKuorTMNKeSE1tgC7svVL+BzntqDON4KiM1HFlpxvXEUCB0P2w0Xrs75McygqxdVaDSE9",\"userToken\":\"UoyWTKRG4RpyJCH4Wqjzht2iYUrsDdk5ir+3IpwEkxcwajJkGR9OGSQBTANQVGW0iVT9MFeDzqL+RYdgfzGSK+h5QzDFIDM+rDLgdKeEE19ljWFm3zMCF+kgYp/dJ/Yq5V7Re+aDXqHg6YkHfvprFA==\"}" \
-H "Accept: 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.
Back to Top