> For the complete documentation index, see [llms.txt](https://docs.harmony.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.harmony.io/people-management/automatic-employee-deletion-sync-from-hr-and-identity-systems.md).

# Automatic Employee Deletion Sync from HR and Identity Systems

When you connect Harmony to an HR or identity system - such as an HRIS platform or a directory provider - Harmony continuously synchronizes your employee data to keep your agent roster and contact list accurate. As part of this synchronization, Harmony now automatically detects and processes employee deletions from your connected platform, removing departed or deactivated employees from your workspace without any manual intervention.

This means your team's data stays consistent across systems at all times, and former employees will no longer appear as active agents or contacts in Harmony.

### How It Works

When an employee is removed from your connected HR or identity system, Harmony detects the deletion during the next synchronization cycle and automatically removes that employee from your Harmony workspace. This applies to employees who have been:

* Deactivated or suspended in your HR or identity platform
* Fully deleted from your connected system
* Removed from a synced group or directory that feeds into Harmony

No manual cleanup is required on your end. The synchronization handles the removal automatically, keeping your agent and contact data up to date.

### What Changes in Harmony

When a deletion is detected and processed, the affected employee will no longer:

* Appear as an active agent in your workspace
* Show up as an available contact for routing or assignment
* Be counted as an active user in your roster

This reduces confusion for your team, improves the accuracy of your workspace data, and ensures that departed employees cannot remain visible as active participants.

### Supported Integrations

This automatic deletion behavior applies to employees synchronized from connected HR and identity systems. Check your integration settings in Harmony to confirm which platforms are currently connected and actively syncing employee data.

### Things to Keep in Mind

* Deletions are processed as part of the regular synchronization cycle. There may be a short delay between the time an employee is removed in your external system and when the change is reflected in Harmony.
* If an employee is removed from Harmony by sync but later needs to be restored, you can re-add them manually or re-include them in the relevant group or directory in your connected system so they are picked up in a future sync.
* Make sure your HR or identity system integration has the appropriate permissions configured to allow Harmony to read deletion or deactivation events. If deletions are not being reflected, review your integration permissions or contact support.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.harmony.io/people-management/automatic-employee-deletion-sync-from-hr-and-identity-systems.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
