> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getprimo.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Permanently delete several SaaS application users

> Permanently delete MULTIPLE SaaS application users and their activity history — the batch form of `deleteSaasApplicationUser`. This is irreversible for every item that succeeds: prefer `archiveSaasApplicationUsers` unless a hard delete is required.

Writes are independent and best-effort: the call returns 200 with a `results` manifest reporting `ok` / `error` per item — always inspect `results` rather than relying on the HTTP status to detect partial failures.

<span className="badge-write">Key: Write</span><span className="badge-company">Scope: Company</span>


## OpenAPI

````yaml https://api.getprimo.com/openapi.json post /saas-application-users/batch-delete
openapi: 3.1.1
info:
  title: Public API - BETA
  description: Read docs on https://docs.getprimo.com/
  version: '1.0'
  contact: {}
servers:
  - url: https://api.getprimo.com
security:
  - apikey: []
tags: []
paths:
  /saas-application-users/batch-delete:
    post:
      tags:
        - Saas
      summary: Permanently delete several SaaS application users
      description: >-
        Permanently delete MULTIPLE SaaS application users and their activity
        history — the batch form of `deleteSaasApplicationUser`. This is
        irreversible for every item that succeeds: prefer
        `archiveSaasApplicationUsers` unless a hard delete is required.


        Writes are independent and best-effort: the call returns 200 with a
        `results` manifest reporting `ok` / `error` per item — always inspect
        `results` rather than relying on the HTTP status to detect partial
        failures.
      operationId: deleteSaasApplicationUsers
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/SaasApplicationUsersBatchBody'
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SaasApplicationUsersBatchResult_Output'
components:
  schemas:
    SaasApplicationUsersBatchBody:
      type: object
      properties:
        saasApplicationUserIds:
          description: >-
            The identity IDs to act on, as returned by `getSaasById` →
            `identities[].id`. Each ID may appear at most once and up to 100 per
            call. Writes are best-effort: inspect the per-item `results` to
            learn which succeeded — the HTTP status is 200 even when some items
            fail.
          minItems: 1
          maxItems: 100
          type: array
          items:
            type: string
            minLength: 1
      required:
        - saasApplicationUserIds
    SaasApplicationUsersBatchResult_Output:
      type: object
      properties:
        successCount:
          type: integer
          description: Number of identities processed successfully.
          minimum: -9007199254740991
          maximum: 9007199254740991
        failureCount:
          type: integer
          description: Number of identities that failed.
          minimum: -9007199254740991
          maximum: 9007199254740991
        results:
          type: array
          description: >-
            Per-item outcome, in the same order as the input
            `saasApplicationUserIds`.
          items:
            type: object
            properties:
              status:
                type: string
                enum:
                  - ok
                  - error
              errorCode:
                description: Machine-readable error code when status is "error".
                anyOf:
                  - type: string
                  - type: 'null'
              message:
                description: Human-readable error detail when status is "error".
                anyOf:
                  - type: string
                  - type: 'null'
              saasApplicationUserId:
                type: string
            required:
              - status
              - saasApplicationUserId
            additionalProperties: false
      required:
        - successCount
        - failureCount
        - results
      additionalProperties: false
  securitySchemes:
    apikey:
      scheme: bearer
      bearerFormat: API key
      type: http
      description: >-
        Use your Primo API key in the Authorization header as `Bearer
        <API_KEY>`.

````