---
title: "Delete role layouts"
method: DELETE
path: "/api/v1/roles/layouts"
tags: ["Roles"]
---

# Delete role layouts

`DELETE /api/v1/roles/layouts`

Deletes a set of layouts from a role

## Request body

- RoleLayoutForm
  - `roleId` string
  - `layoutIds` string[]

## Response `200`

Layouts deleted successfully

- ResponseEntityRoleOperationView
  - `errors` ErrorEntity[]
    - `errorCode` string
    - `message` string
    - `fieldName` string
  - `entity` object
  - `messages` MessageEntity[]
    - `message` string
  - `i18nMessagesMap` object
  - `permissions` string[]
  - `pagination` Pagination
    - `currentPage` integer
    - `perPage` integer
    - `totalEntries` integer

## Other responses

- `400` — Bad request - invalid role or layout data
- `401` — Unauthorized - authentication required
- `403` — Forbidden - admin permissions required

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
