---
search:
  tags:
    - employees
    - DELETE
seo:
  description: >-
    Soft deletes an employee and the associated user account. The employee is…
    Reference for the DELETE /employees/{id} endpoint in the Leadtime Public API
    API.
sidebar:
  badge: DELETE
  label: Delete employee
title: Delete employee
type: openapi-operation
---
Soft deletes an employee and the associated user account. The employee is not permanently removed from the database, but marked as deleted with anonymized data.

**What happens when deleting an employee:**
1. Employee record is marked as deleted
2. Associated user account is also marked as deleted
3. Personal data is anonymized for privacy:
   - firstName and lastName are set to "Deleted User"
   - Email is anonymized
   - Other personal information is cleared
4. Billing is automatically recalculated to reflect the removal
5. The employee will no longer appear in employee lists or grids

**Note:** This is a soft delete operation. The employee data remains in the database but is anonymized and hidden. This operation cannot be undone. Returns 404 if the employee does not exist.

<Operation source="api-reference" id="employeescontroller-deleteemployee" />
