Skip to main content

Delete Resume

DELETE /api/v1/resumes/:id

Permanently delete a resume from your account.

Request

Headers

HeaderValueRequired
AuthorizationBearer YOUR_API_KEYREQUIRED

Path Parameters

ParameterTypeDescription
idstringResume ID to delete REQUIRED

Response

Success Response

Status Code: 200 OK

{
  "success": true
}

Response Fields

FieldTypeDescription
successbooleanAlways true on successful deletion

Examples

Basic Request

curl -X DELETE https://api.enhancv.com/api/v1/resumes/64f1a2b3c4d5e6f7g8h9i0j1 \
  -H "Authorization: Bearer enh_live_your_api_key_here"
const resumeId = '64f1a2b3c4d5e6f7g8h9i0j1';

const response = await fetch(
  `https://api.enhancv.com/api/v1/resumes/${resumeId}`,
  {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer enh_live_your_api_key_here'
    }
  }
);

const result = await response.json();
console.log('Resume deleted:', result.success);
import requests

resume_id = '64f1a2b3c4d5e6f7g8h9i0j1'

response = requests.delete(
    f'https://api.enhancv.com/api/v1/resumes/{resume_id}',
    headers={'Authorization': 'Bearer enh_live_your_api_key_here'}
)

result = response.json()
print(f"Resume deleted: {result['success']}")

Delete with Confirmation

async function deleteResume(resumeId, apiKey) {
  // First, verify the resume exists
  const getResponse = await fetch(
    `https://api.enhancv.com/api/v1/resumes/${resumeId}`,
    {
      headers: {
        'Authorization': `Bearer ${apiKey}`
      }
    }
  );

  if (!getResponse.ok) {
    throw new Error('Resume not found');
  }

  const resume = await getResponse.json();
  console.log(`Deleting resume: ${resume.title}`);

  // Delete the resume
  const deleteResponse = await fetch(
    `https://api.enhancv.com/api/v1/resumes/${resumeId}`,
    {
      method: 'DELETE',
      headers: {
        'Authorization': `Bearer ${apiKey}`
      }
    }
  );

  const result = await deleteResponse.json();

  if (result.success) {
    console.log('Resume deleted successfully');
  }
}

Error Responses

401 Unauthorized

Missing or invalid API key.

{
  "error": "Invalid API key",
  "status": 401
}

404 Not Found

Resume not found or doesn't belong to your account.

{
  "error": "Resume not found",
  "status": 404
}

Notes

  • This action is permanent and cannot be undone
  • The resume is immediately removed from your account
  • You can only delete resumes that belong to your account
  • Cover letters cannot be deleted through this endpoint
  • After deletion, the resume ID becomes invalid
  • Consider retrieving the resume data before deleting if you might need it later

Best Practices

  • Always verify the resume ID before deleting
  • Consider implementing a confirmation step in your application
  • Use the Retrieve endpoint to back up important resume data before deletion
  • Check the response status to confirm successful deletion