Delete

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

Endpoint

DELETE
/wp-json/dlm/v1/generators/{generator_id}

Responses

{
    "success": true,
    "data": []
}
{
    "code": "server_error",
    "message": "The generator(s) could not be deleted.",
    "data": {
        "code": 500
    }
}

Examples

Example
use IdeoLogix\DigitalLicenseManagerClient\Service;

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

$response = $api->generators()->delete(5);

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