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); ?>