Delete a Type
delete
/content/management/api/v1.1/types/{name}
Deletes a type.
Request
Path Parameters
-
name: string
Type name identifier is case-sensitive and any special characters must be encoded
Query Parameters
-
links(optional): string
This parameter accepts a comma-separated list of link names. By default, this parameter gives all the links applicable. Possible values are: self, canonical, describedby
Header Parameters
-
X-Requested-With: string
A custom header to mitigate CSRF attacks.Allowed Values:
[ "XMLHttpRequest" ]
Response
204 Response
No content.
400 Response
Bad request.
403 Response
Forbidden.
404 Response
Not found.
500 Response
Internal server error.
Examples
The following example shows how to delete a type using its name by submitting a DELETE request on the REST resource using cURL.
curl -i -X DELETE -H 'X-Requested-With: XMLHttpRequest' 'https://host:port/content/management/api/v1.1/types/{name}'
Example:
/content/management/api/v1.1/types/typeName
Response Code
HTTP/1.1 204 No Content