HCP returns information about the objects that were successfully deleted and the objects that were not successfully deleted from a delete request in an XML response body, in this format:
<?xml version="1.0" encoding="UTF-8"?>
<DeleteResult>
<Deleted>
<Key>object-name</Key>
<VersionId>version-id</VersionId>
<DeleteMarker>true|false</DeleteMarker>
<DeleteMarkerVersionId>Not Implemented</DeleteMarkerVersionId>
</Deleted>
<Error>
<Key>object-name</Key>
<Code>error-code</Code>
<Message>error-message</Message>
</Error>
</DeleteResult>
The table below describes the XML elements in the response body returned in response to a request to delete multiple objects. The elements are listed in alphabetical order.
Element | Description |
---|---|
Code |
Child of the Error element. The Code element specifies the status code for the error. |
DeleteMarker |
Child of the Deleted element. The DeleteMarker element specifies whether the request accessed a delete marker. |
DeleteMarker VersionId |
Child of the Deleted element. The DeleteMarkerVersionId element specifies the version ID of the delete marker accessed by the request. Currently, Not Implemented is returned with this element. |
DeleteResult |
Root element. |
Deleted |
Child of the DeleteResult element. The Deleted element specifies the name of the object that the S3 compatible API successfully deleted. |
Error |
Child of the DeleteResult element. The Error element specifies the name of the object that was not deleted and describes the error that was encountered. |
Key |
Child of the Deleted element or the Error element. The Key element specifies the name of the object that the S3 compatible API attempted to delete. |
Message |
Child of the Error element. The Message element provides more information about the error. |
VersionId |
Child of the Deleted element or the Error element. The VersionId element specifies the version ID of the object that the S3 compatible API attempted to delete. The version ID of only the current version of the object is returned. |
© 2015, 2020 Hitachi Vantara LLC. All rights reserved.