---
title: "Changes to Deletes and archives historical data based on `expungeAndArchiveDataConfig`. Currently,   1. deletes historical users not attached to any service 2. deletes historical invites 3. deletes forgotten passwords 4. archives services without transactions within the configured number of days and detaches users from service"
method: POST
path: "/v1/tasks/expunge-and-archive-historical-data"
---

# Changes to Deletes and archives historical data based on `expungeAndArchiveDataConfig`. Currently,   1. deletes historical users not attached to any service 2. deletes historical invites 3. deletes forgotten passwords 4. archives services without transactions within the configured number of days and detaches users from service

`POST /v1/tasks/expunge-and-archive-historical-data`

> Every recorded change to this operation, newest first.

## Timeline

Changed in 1 of 53 revisions.

- **2023-11-08** `8d6a4b54fae9`: 1 info

## Changes

- **2023-11-08** `8d6a4b54fae9`: 1 info
  - endpoint added

---

[Operation](https://skmtc.dev/government-digital-service/apis/adminusers-api/docs/v1/tasks/expunge-and-archive-historical-data/post.md) - [API](https://skmtc.dev/government-digital-service/apis/adminusers-api.md) - [Page](https://skmtc.dev/government-digital-service/apis/adminusers-api/changes/v1/tasks/expunge-and-archive-historical-data/post)
