Operations on CTERA API Objects > Deleting Objects
Deleting Objects
Delete any CTERA Portal API object or attribute.
API
admin/api/object/member
URI
{BASE_URL}/object/member
For example, to delete a user: {BASE_URL}/users/user_ID
HTTP Method
DELETE
Request Body
empty
Expected Response status
200 OK
Note: Deletion is only supported for objects stored in lists of objects.
Java Example
private static String deleteObject(HttpClient client, String fullURL) throws Exception {
  DeleteMethod method = new DeleteMethod(fullURL);
  int statusCode = client.executeMethod(method);
  String result = new String(method.getResponseBody());
  if (statusCode != HttpServletResponse.SC_OK)
    throw new Exception(result);
}