After capturing content to vRealize Suite Lifecycle Manager, you can use a POST request to delete the content or content versions you no longer want.
As a content developer, you can delete content from
vRealize Suite Lifecycle Manager. When content is deleted, all versions of content are deleted. If you want to retain some versions of content, you can specify only the versions of content that you want to delete. Not all content has multiple versions.
Procedure
- To delete content from vRealize Suite Lifecycle Manager, pass an array of content IDs in the request body.
curl -X POST \
'$url/lcm/cms/api/v1/contents/delete' \
-H 'Accept: application/json' \
-H 'Authorization: Basic YWRtaW5AbG9jYWw6VGhpc0lzUGFzc3dvcmQ=' \
-H 'Content-Type: application/json'
-d '{
"30318333-8086-415d-937e-08b79edfbb6d",
"a99eb036-4c9a-45bf-886a-7d5f03317f35",
"6aee3b2a-c975-4184-be0d-bd81ee776259"
}'| jq "."
- To delete content versions, pass an array of content version IDs in the request body.
curl -X POST \
'$url/lcm/cms/api/v1/contents/versions/delete' \
-H 'Accept: application/json' \
-H 'Authorization: Basic YWRtaW5AbG9jYWw6VGhpc0lzUGFzc3dvcmQ=' \
-H 'Content-Type: application/json'
-d '{
"30318333-8086-415d-937e-08b79edfbb6d",
"a99eb036-4c9a-45bf-886a-7d5f03317f35",
"6aee3b2a-c975-4184-be0d-bd81ee776259"
}'| jq "."