DELETE Attribute

Description

The implementation of the DELETE operation deletes the attribute named in the URI. All attributes and links of the dataset will also be deleted.

Requests

Syntax

DELETE /groups/<id>/<name> HTTP/1.1
Host: DOMAIN
Authorization: <authorization_string>
  • <id> is the UUID of the dataset/group/committed datatype
  • <name> is the url-encoded name of the requested attribute

Request Parameters

This implementation of the operation does not use request parameters.

Request Headers

This implementation of the operation uses only the request headers that are common to most requests. See Common Request Headers

Responses

Response Headers

This implementation of the operation uses only response headers that are common to most responses. See Common Response Headers.

Response Elements

On success, a JSON response will be returned with the following elements:

hrefs

An array of links to related resources. See Hypermedia.

Special Errors

The implementation of the operation does not return special errors. For general information on standard error codes, see Common Error Responses.

Examples

Sample Request

DELETE /groups/36ae688a-ac0e-11e4-a44b-3c15c2da029e/attributes/attr1 HTTP/1.1
Content-Length: 0
User-Agent: python-requests/2.3.0 CPython/2.7.8 Darwin/14.0.0
host: tall_updated.test.hdfgroup.org
Accept: */*
Accept-Encoding: gzip, deflate

Sample Response

HTTP/1.1 200 OK
Date: Wed, 04 Feb 2015 01:36:17 GMT
Content-Length: 420
Content-Type: application/json
Server: TornadoServer/3.2.2
{
"hrefs": [
    {"href": "http://tall_updated.test.hdfgroup.org/groups/36ae688a-ac0e-11e4-a44b-3c15c2da029e/attributes", "rel": "self"},
    {"href": "http://tall_updated.test.hdfgroup.org/groups/36ae688a-ac0e-11e4-a44b-3c15c2da029e", "rel": "owner"},
    {"href": "http://tall_updated.test.hdfgroup.org/groups/36ae688a-ac0e-11e4-a44b-3c15c2da029e", "rel": "root"},
    {"href": "http://tall_updated.test.hdfgroup.org/", "rel": "home"}
  ]
}