---
title: "Batch delete authorization subject attributes"
method: POST
path: "/authz/subject-attributes/batch-delete"
tags: ["authz-subject-attributes"]
---

# Batch delete authorization subject attributes

`POST /authz/subject-attributes/batch-delete`

(reserved for future use) Deletes authorization subject attributes in bulk for the caller's tenant, matched by principal\_type + principal\_id. Maximum 50000 items per request.

Required roles: All

## Request body

- BatchDeleteAuthzSubjectAttributesRequest
  - `items` AuthzSubjectAttributeKey[], required — List of subject attribute keys to delete (max 50000)
    - `principal_type` string — Principal type (defaults to "user" when omitted)
    - `principal_id` string, required — Principal identifier

## Response `200`

Successfully processed delete request

- BatchWriteAuthzSubjectAttributesResponse
  - `affected_count` integer, required — Number of rows affected by the operation

## Other responses

- `400` — Bad Request
- `401` — Unauthorized
- `500` — Internal Server Error

---

[API](https://skmtc.net/qlonolink/apis/qaip-apis.md) · [All operations](https://skmtc.net/qlonolink/apis/qaip-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/qlonolink/qaip-apis/revisions/f5f5994dfe05/schema)
