1. Home
  2. Knowledge Base
  3. API
  4. DELETE: Deleting Data

DELETE: Deleting Data

The DELETE method will let you delete specific resources such as members, membership levels, etc. Note that this action cannot be reversed so use it with care.

Syntax

$response = $api->delete($resource);

Where:

  • $resource – an API resource (i.e. /levels)

Returns:

$response – string: can be either serialized PHP data, JSON or XML

Example

To delete a membership level

<?php
$level_id = 1234567890;
$response = $api->delete('/levels/'.$level_id);
?>
Was this article helpful?

Related Articles

Contents

Need Support?

Can't find the answer you're looking for?
Contact Support