---
title: "Delete user's recent custom status"
method: POST
path: "/api/v4/users/{user_id}/status/custom/recent/delete"
tags: ["status"]
---

# Delete user's recent custom status

`POST /api/v4/users/{user_id}/status/custom/recent/delete`

Deletes a user's recent custom status by removing the specific status from the recentCustomStatuses in the user's props and updates the user.
##### Permissions
Must be logged in as the user whose recent custom status is being deleted.

## Path parameters

- `user_id` string, required

## Request body

- object
  - `emoji` string, required — Any emoji
  - `text` string, required — Any custom status text
  - `duration` string, required — Duration of custom status, can be `thirty_minutes`, `one_hour`, `four_hours`, `today`, `this_week` or `date_and_time`
  - `expires_at` string, required — The time at which custom status should be expired. It should be in ISO format.

## Response `200`

User recent custom status delete successful

- 38cb7293StatusOK
  - `status` string — Will contain "ok" if the request was successful and there was nothing else to return

## Other responses

- `400` — Invalid or missing parameters in URL or request body
- `401` — No access token provided

---

[API](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools.md) · [All operations](https://skmtc.dev/infomaniak/apis/api-reference-developer-tools/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/infomaniak/api-reference-developer-tools/revisions/667aae28fec6/schema)
