# HEAD container to show the new metadata
$ curl -I http://127.0.0.1:8080/v1/AUTH_test/test_container -Hx-auth-token:AUTH_tk71b0ad0c9b81435884091ae1ffea0ec1
HTTP/1.1 204 No Content
X-Container-Object-Count: 0
X-Timestamp: 1347421947.14944
X-Container-Bytes-Used: 0
X-Container-Meta-Just-Testing: some-value
Accept-Ranges: bytes
Content-Length: 0
Date: Wed, 12 Sep 2012 03:54:43 GMT
# POST to remove the metadata item
$ curl -XPOST -Hx-remove-container-meta-just-testing:junk http://127.0.0.1:8080/v1/AUTH_test/test_container -Hx-auth-token:AUTH_tk71b0ad0c9b81435884091ae1ffea0ec1
# HEAD to show the metadata item is gone
$ curl -I http://127.0.0.1:8080/v1/AUTH_test/test_container -Hx-auth-token:AUTH_tk71b0ad0c9b81435884091ae1ffea0ec1
HTTP/1.1 204 No Content
X-Container-Object-Count: 0
X-Timestamp: 1347421947.14944
X-Container-Bytes-Used: 0
Accept-Ranges: bytes
Content-Length: 0
Date: Wed, 12 Sep 2012 03:55:29 GMT
The empty header form of deletion has been there since August of 2010 (version 1.1.0).
The -remove- form of deletion has been there since March of this year (version 1.4.8).
The documentation for such is at http:// docs.openstack. org/api/ openstack- object- storage/ 1.0/content/ delete- container- metadata. html
Here's a quick test I did with curl:
# Create container 127.0.0. 1:8080/ v1/AUTH_ test/test_ container -Hx-auth- token:AUTH_ tk71b0ad0c9b814 35884091ae1ffea 0ec1
$ curl -XPUT http://
201 Created
# HEAD container to show no metadata 127.0.0. 1:8080/ v1/AUTH_ test/test_ container -Hx-auth- token:AUTH_ tk71b0ad0c9b814 35884091ae1ffea 0ec1 Object- Count: 0 Bytes-Used: 0
$ curl -I http://
HTTP/1.1 204 No Content
X-Container-
X-Timestamp: 1347421947.14939
X-Container-
Accept-Ranges: bytes
Content-Length: 0
Date: Wed, 12 Sep 2012 03:53:18 GMT
# POST to make metadata meta-just- testing: some-value http:// 127.0.0. 1:8080/ v1/AUTH_ test/test_ container -Hx-auth- token:AUTH_ tk71b0ad0c9b814 35884091ae1ffea 0ec1
$ curl -XPOST -Hx-container-
# HEAD container to show the new metadata 127.0.0. 1:8080/ v1/AUTH_ test/test_ container -Hx-auth- token:AUTH_ tk71b0ad0c9b814 35884091ae1ffea 0ec1 Object- Count: 0 Bytes-Used: 0 Meta-Just- Testing: some-value
$ curl -I http://
HTTP/1.1 204 No Content
X-Container-
X-Timestamp: 1347421947.14944
X-Container-
X-Container-
Accept-Ranges: bytes
Content-Length: 0
Date: Wed, 12 Sep 2012 03:54:43 GMT
# POST to remove the metadata item container- meta-just- testing: junk http:// 127.0.0. 1:8080/ v1/AUTH_ test/test_ container -Hx-auth- token:AUTH_ tk71b0ad0c9b814 35884091ae1ffea 0ec1
$ curl -XPOST -Hx-remove-
# HEAD to show the metadata item is gone 127.0.0. 1:8080/ v1/AUTH_ test/test_ container -Hx-auth- token:AUTH_ tk71b0ad0c9b814 35884091ae1ffea 0ec1 Object- Count: 0 Bytes-Used: 0
$ curl -I http://
HTTP/1.1 204 No Content
X-Container-
X-Timestamp: 1347421947.14944
X-Container-
Accept-Ranges: bytes
Content-Length: 0
Date: Wed, 12 Sep 2012 03:55:29 GMT