> For the complete documentation index, see [llms.txt](https://docs.getpenfold.dev/llms.txt)

# Remove a workplace admin

> DELETE /organisations/{organisation_id}/workplace_admins/{workplace_admin_id}
> 
> **Partner organisations only.** A Payroll organisation calling this
> endpoint receives `405 Method Not Allowed`. An employer-scoped access
> token receives `403 Forbidden`.
> 
> Removes a person’s Workplace Platform access to a managed organisation,
> for example when they leave the customer’s company. Once removed they
> can no longer sign in through your platform or with a password, and
> they no longer appear in the list of workplace admins.
> 
> Removal is idempotent: repeating the call for an admin who has already
> been removed returns `200` and changes nothing. The same person can be
> registered again later, including with the same `external_id`.



## Servers
- https://payroll-api.getpenfold.dev/v4: https://payroll-api.getpenfold.dev/v4


## Authentication methods
- O auth2 client credentials


## Parameters

### Path parameters

- **organisation_id** (string)
  Unique identifier for the managed organisation.

- **workplace_admin_id** (string)
  Penfold’s identifier for the workplace admin, as returned when they were registered.




## Responses
### 200
Workplace admin removed, or was already removed.

### 401
Unauthorized

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.


### 403
Forbidden, the access token is scoped to an employer.

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.


### 404
Organisation not found or not managed by your Partner organisation, or the workplace admin was never a member of it.

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.


### 405
Method not allowed

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.


### 500
Internal server error. The admin may be partially removed; retry the request.

#### Body: application/json (object)
- **error** (string)
  A descriptive error message.



[Powered by Bump.sh](https://bump.sh)
