---
title: "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"
tags: ["Tasks"]
---

# 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`

## Response `200`

OK

---

[API](https://skmtc.net/government-digital-service/apis/adminusers-api.md) · [All operations](https://skmtc.net/government-digital-service/apis/adminusers-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/government-digital-service/adminusers-api/revisions/8f9d543f352b/schema)
