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

# Delete instances

> Delete instances passed in the payload



## OpenAPI

````yaml /reference/openapi.json post /instances/bulk/delete
openapi: 3.0.1
info:
  title: Next Matter API
  description: >-
    # Introduction

    This is reference documentation for the Next Matter API. It is a RESTful API
    that can be interacted with by sending JSON-formatted requests. Responses
    are also returned in a JSON format.

            The API doesn't expose any endpoints of the workflow editor.
            This means you can't use this API to edit the underlying workflow structure or change definitions.
     # Testing a request

            Use a third party client, such as curl, Postman, or Advanced REST Client, to test our REST API.
  termsOfService: https://www.nextmatter.com/terms-of-service
  contact:
    email: development@nextmatter.com
  version: v1
  x-logo:
    url: >-
      https://assets-global.website-files.com/5fcecdf27451306b2081fedc/5ff43812707834743db939be_NextMatter_Logo_Horizontal.svg
    backgroundColor: '#FFFFFF'
    altText: Next Matter logo
servers:
  - url: https://core.nextmatter.com/api
security:
  - Bearer: []
paths:
  /instances/bulk/delete:
    post:
      tags:
        - Instance
      summary: Delete instances
      description: Delete instances passed in the payload
      operationId: instances_bulk_delete
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/IdList'
        required: true
      responses:
        '204':
          description: No Content
          content: {}
        '400':
          description: Bad Request
          content: {}
        '403':
          description: Forbidden
          content: {}
        '404':
          description: Not Found
          content: {}
components:
  schemas:
    IdList:
      required:
        - ids
      type: object
      properties:
        ids:
          type: array
          items:
            type: integer
  securitySchemes:
    Bearer:
      type: apiKey
      description: >

        Authentication is API key based. As an admin, you can generate an API
        key in Next Matter by going to Company > Next Matter API keys.


        When sending requests to the API, authenticate by passing the API key in
        the "Authorization"

        HTTP header, prepended with the string "Api-Key ".


        For example:

         Authorization: Api-Key xyzabc.12fsfe242ubdgakew
      name: Authorization
      in: header
      x-default: Api-Key YOUR_NM_API_KEY

````