Follow the document's steps
http://docs.openstack.org/developer/swift/overview_large_objects.html
I put 3 segments file and 1 Manifest file successfully
# First, upload the segments curl -X PUT -H 'X-Auth-Token: ' \ http:///container/myobject/1 --data-binary 'data1' curl -X PUT -H 'X-Auth-Token: ' \ http:///container/myobject/2 --data-binary 'data2' curl -X PUT -H 'X-Auth-Token: ' \ http:///container/myobject/3 --data-binary 'data3' # Next, create the manifest file curl -X PUT -H 'X-Auth-Token: ' \ -H 'X-Object-Manifest: container/myobject/' \ http:///container/myobject --data-binary ''
When I download the object there's no problem ,the object is downloaded
curl -H 'X-Auth-Token: ' http:///container/myobject
But when I want to delete the object it only delete the manifest file ,all the segment file still exist on the cloud.
curl X DELETE -H 'X-Auth-Token: ' http:///container/myobject
How can I delete the object both the manifest file and the segment files? I want to use the API the the SWIFT tool.
You need to delete the segments individually, in the same manner you delete the manifest file.
Keep in mind there is no way to atomically delete a dynamic large object. Even if you delete the manifest file first, the weak consistency model used by the API does not require the effects of two delete operations to appear to users (e.g. in future Get Object calls) in the order they were sent.