Delete Content or Content Versions

After capturing content to
VMware Aria Suite Lifecycle
, you can use a POST request to delete the content or content versions you no longer want.
  • Verify that the appliance name and fully qualified domain name of the
    VMware Aria Suite Lifecycle
    instance are available.
  • Verify that the URL variable is assigned.
    url='https://LCM-Hostname'
  • Verify that you have the IDs of the content or content versions that you want to delete.
As a content developer, you can delete content from
VMware Aria Suite Lifecycle
. 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.
  1. To delete content from
    VMware Aria Suite Lifecycle
    , 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 "."
  2. 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 "."