---
title: "Deactivate User"
method: DELETE
path: "/v2/company/{company_id}/users/{identifier}"
tags: ["Users"]
---

# Deactivate User

`DELETE /v2/company/{company_id}/users/{identifier}`

## Request

- Base URL: `https://api.7shifts.com`
- URL: `https://api.7shifts.com/v2/company/{company_id}/users/{identifier}`
- Auth: one of:
  - OAuth 2
    - Authorization code: `https://app.7shifts.com/oauth2/authorize`
    - Client credentials
    - Password
    - Token URL: `https://app.7shifts.com/oauth2/token`
  - API key in cookie `7session`
- TypeScript: <https://skmtc.dev/7shifts/apis/7shifts-api/docs/v2/company/:company_id/users/:identifier/delete.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `company_id` integer, required
- `identifier` integer, required

## Headers

- `x-api-version` string: An API version
- `x-company-guid` string, uuid

## Request body

- object
  - `inactive_reason` string, nullable, required: Enum value. See inactive_reasons endpoint for list of values.
  - `inactive_comments` string, nullable: Comments related to this user deletion.
  - `would_rehire` boolean, nullable

## Response `204`

No Content

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not found
- `500`: Server Error

---

[API](https://skmtc.dev/7shifts/apis/7shifts-api.md) - [All operations](https://skmtc.dev/7shifts/apis/7shifts-api/llms.txt) - [OpenAPI document](https://skmtc.dev/7shifts/apis/7shifts-api/revisions/40e0ef40dfcd?raw)
