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.
$response = $api->delete($resource);
- $resource – an API resource (i.e. /levels)
$response – string: can be either serialized PHP data, JSON or XML
To delete a membership level
<?php $level_id = 1234567890; $response = $api->delete('/levels/'.$level_id); ?>