1. Home
  2. API
  3. DELETE: Deleting Data

DELETE: Deleting Data

Contents

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);
?>
Updated on July 11, 2018

Was this article helpful?

Related Articles

Not the solution you were looking for?
Click the link below to submit a support ticket
Submit Ticket