• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (OBS)
  4. Operations on Objects
  5. DELETE Object
  6. Examples

Examples

Sample Request

DELETE /test HTTP/1.1 
 User-Agent: Jakarta Commons-HttpClient/3.1 
 Host: bucketname.obs.example.com 
 Accept: */* 
 Date: Sat, 03 Dec 2011 08:38:16 +0000 
 Authorization: AWS BF6C09F302931425E9A7:wQ1Tp3rD7kaUCsYfPKxOIN7NoSA=

Sample Response

HTTP/1.1 204 No Content 
 Server: OBS 
 x-amz-request-id: 001B21A61C6C000001340312E226528D 
 x-amz-id-2: MDAxQjIxQTYxQzZDMDAwMDAxMzQwMzEyRTIyNjUyOERBQUFBQUFBQWJiYmJiYmJi 
 x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc 
 Content-Type: text/xml 
 Date: Sat, 03 Dec 2011 08:38:18 GMT

Sample Request (Deleting an Object with Version ID Specified)

DELETE /object?versionId=AAABQ4-YOzfc0vycq3gAAAAUVURTRkha HTTP/1.1 
 User-Agent: Jakarta Commons-HttpClient/3.1 
 Host: bucketname.obs.example.com 
 Accept: */* 
 Date: Tue, 14 Jan 2014 07:12:57 +0000 
 Authorization: AWS C9590CEB8EC051BDEC9D:DxZpQ520WCv/yMgrUjBemFORuN0=

Sample Response (Deleting an Object with Version ID Specified)

HTTP/1.1 204 No Content 
 Server: OBS 
 x-amz-request-id: DCD2FC9CAB78000001438F98937AB673 
 x-amz-id-2: UOWLHKBXWfKaBEToXGU3Om6pl0/Bid6OmhzgdJJDxN40twtrmuCHY0rEtDdSX7zp 
 x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc 
 Content-Type: text/xml 
 x-amz-version-id: AAABQ4-YOzfc0vycq3gAAAAUVURTRkha 
 Date: Tue, 14 Jan 2014 07:12:57 GMT

Sample Request (Deleting an Object with a Deletion Mark from a Bucket with Versioning Enabled)

DELETE /object HTTP/1.1 
 User-Agent: Jakarta Commons-HttpClient/3.1 
 Host: bucketname.obs.example.com 
 Accept: */* 
 Date: Tue, 14 Jan 2014 06:16:51 +0000 
 Authorization: AWS C9590CEB8EC051BDEC9D:VlzVUv3z3WOuSyu2l8NzVsOXY0U=

Sample Response (Deleting an Object with a Deletion Mark from a Bucket with Versioning Enabled)

HTTP/1.1 204 No Content 
 Server: OBS 
 x-amz-request-id: DCD2FC9CAB78000001438F65352A9AF5 
 x-amz-id-2: CzNX/O9/H0oZRUwAk/sWgyfVDNJMMX+v9DAzArbD40AlLtZ/TCC7H73FNIo5K81I 
 x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc 
 Content-Type: text/xml 
 x-amz-delete-marker: true 
 x-amz-version-id: AAABQ49lNT_c0vycq3gAAAAOVURTRkha 
 Date: Tue, 14 Jan 2014 06:16:51 GMT