Delete

This endpoint can be used to delete License records in the database.

Endpoint

DELETE
/wp-json/dlm/v1/licenses/{license_key}

Responses

{
    "success": true,
    "data": []
}
{
    "code": "server_error",
    "message": "The license key 'XX-XX-XX' could not be found.",
    "data": {
        "code": 500
    }
}

Examples

Example
use IdeoLogix\DigitalLicenseManagerClient\Service;

$api = new Service( 'http://site.com', 'ck_XXXX', 'cs_XXXX' );

$response = $api->licenses()->delete( 'XX-XX-XX' );

// Empty array if everything is alright.
print_r( $response->get_data() ); 
Response
Array
(
)
For more details please click here.