HR

Delete a person

hr_delete_person · Deletes data · Markdown

Erases a person for good with their leave, tasks and document records; their files stay in the store.

Free

This tool costs nothing to call.

An example

Mia Schulz left last year and asked us to delete her data. Remove her completely.

Your agent callshr_delete_personFree

The example business is Hansen & Voss, a restaurant-equipment wholesaler in Hamburg with 60 staff. The reply is the one the tool really gives.

With these arguments
{
  "person": "mia.schulz@hansenvoss.example"
}
What comes back
{
  "deleted": {
    "person_id": 4104,
    "name": "Mia Schulz"
  },
  "removed": {
    "leave_requests": 0,
    "adjustments": 0,
    "tasks": 0,
    "documents": 0
  },
  "files_kept": []
}

Use it when

A person asks to be forgotten. To keep someone's history after they leave, set their end_date instead.

What it does

Erase a person for good with everything that is theirs: leave requests, adjustments, checklist tasks and document records, for example when they ask to be forgotten. Their files stay in the file store (files_delete removes those). Refused while they manage others: give those people another manager first. To keep someone's history after they go, set their end_date instead. Free.

What comes back

deleted: who was erased; removed: how many leave requests, adjustments, tasks and documents went with them; files_kept: their files still in the store. Every reply also carries cost_usd and balance_usd.

Inputs

NameTypeWhat it is
personRequiredinteger or stringThe person_id, or their work email. 1 to 254 characters, at least 1.

The call

Over MCP, call hr_delete_person on https://api.conecto.chat/mcp/hr. Over REST:

Terminal
curl -X POST https://api.conecto.chat/v1/tools/hr_delete_person \
  -H "Authorization: Bearer $CONECTO_KEY" \
  -H "Content-Type: application/json" \
  -d '{"person":"mia.schulz@hansenvoss.example"}'

When it refuses

A refused call costs nothing and says what to do next.

CodeWhenWhat to do
not_found404No person of the business has that person_id or work email.Find them with hr_list_people.
manages_others409The person still manages others.Give those people another manager first.

Give this to your agent.

Set up Conecto from https://conecto.chat/SKILL.md