Delete instructor

Deletes an instructor using DELETE.

The instructor is marked as deleted, as in FrontCore: no longer listed, and the instructor.deleted webhook is sent. Course dates they are on are not changed. To hide an instructor but keep them, archive them instead (is_archived on PUT). The response is {"instructor_id": 123, "deleted": true}; an instructor that doesn't exist or is already deleted gives 404.

Request

DELETE https://api.frontcore.com/v2/instructors/:id

For every API request you make, you'll need to present the API access key in the HTTP Header as X-API-Key to be authenticated.

Parameters

Name Required Value Description
id required integer Instructor ID from /instructors

Example code in PHP

$request_url = 'https://api.frontcore.com/v2/instructors/:id';
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $request_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); 
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "DELETE");

curl_setopt($ch, CURLOPT_HTTPHEADER, array(
  'X-API-Key: {your-api-key}',
  'Accept: application/json',
));
$result = curl_exec($ch);
curl_close($ch);
               

Response

If the method is successful it responds with an JSON structure, as it is shown below.

{
    "error": "Instructor not found."
}

Unsuccessful response sample:

{
    "error": "Wrong API Key"
}      
© 2026 FrontCore