---
title: "Delete a single/list of NLIS/non-NLIS device(s)"
url: "https://stg.developer.mla.com.au/apis/device-public-staging/versions/51bbd5df-9d52-4e96-8fab-3c0fd2f54a36/operations/deleteDevice"
---

> Full API specification: https://stg.developer.mla.com.au/apis/device-public-staging/versions/51bbd5df-9d52-4e96-8fab-3c0fd2f54a36.md

# Delete a single/list of NLIS/non-NLIS device(s)

`DELETE` `/public/device/v1/delete`

Operation ID: `deleteDevice`

This API allows the invoker to soft delete a single/list of NLIS/non-NLIS device(s). The route takes a single/list of NLIS/non-NLIS device(s) as an input and returns a receipt ID with a list of NLIS/non-NLIS device(s) that have been flagged as inactive.

## Header parameters

- `correlationId` (string, required) - UUID used to track the API call from the invoker's perspective. Sender is required to include the correlationId in the request to use it as a tracker for asynchronous responses.

## Request body

Content types: `application/json`

## Responses

- `200` - OK
- `404` - Sample not found
- `422` - Validation Error

## OpenAPI definition

```yaml
openapi: 3.1.0
info:
  title: Device Public
  version: v1.0.0
servers:
  - url: https://6dc8806175.gateways.konggateway.com
paths:
  /public/device/v1/delete:
    delete:
      summary: Delete a single/list of NLIS/non-NLIS device(s)
      deprecated: false
      description: This API allows the invoker to soft delete a single/list of
        NLIS/non-NLIS device(s). The route takes a single/list of NLIS/non-NLIS
        device(s) as an input and returns a receipt ID with a list of
        NLIS/non-NLIS device(s) that have been flagged as inactive.
      operationId: deleteDevice
      tags:
        - Device
      parameters:
        - name: correlationId
          in: header
          description: UUID used to track the API call from the invoker's perspective.
            Sender is required to include the correlationId in the request to
            use it as a tracker for asynchronous responses.
          required: true
          example: ""
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: "#/components/schemas/DeleteDeviceRequest"
            example:
              - EID:
                  rfid: 982 123489467678
                comments: Device is no longer in use
              - EID:
                  nlisId: 3MGJE153XBJ00612
                comments: null
      responses:
        "200":
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  receiptId:
                    type: string
                  deletedDevices:
                    type: array
                    items:
                      $ref: "#/components/schemas/EidSchema"
                required:
                  - receiptId
                  - deletedDevices
              example:
                receiptId: i345iutyrowtyegt43wh
                deletedDevices:
                  - EID:
                      rfid: 982 123489467678
                  - EID:
                      nlisId: 3MGJE153XBJ00612
          headers:
            correlationId:
              example: ""
              required: true
              description: UUID used to track the API call from the invoker's perspective.
                Sender is required to include the correlationId in the request
                to use it as a tracker for asynchronous responses.
              schema:
                type: string
        "404":
          description: Sample not found
          content:
            application/json:
              schema:
                type: object
                properties: {}
          headers: {}
        "422":
          description: Validation Error
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  details:
                    items:
                      $ref: "#/components/schemas/ValidationError"
                    type: array
                    title: Detail
                required:
                  - error
                  - details
          headers: {}
      security: []
security: []
components:
  schemas:
    DeleteDeviceRequest:
      type: object
      properties:
        EID:
          oneOf:
            - type: object
              properties:
                rfid:
                  type: string
                  description: The RFID is 16 character number
                  minLength: 15
                  maxLength: 16
              required:
                - rfid
            - type: object
              properties:
                nlisId:
                  type: string
                  description: The NLISID is a 16 character alphanumeric
                  minLength: 16
                  maxLength: 16
              required:
                - nlisId
        comments:
          type: string
      required:
        - EID
    EidSchema:
      type: object
      properties:
        EID:
          oneOf:
            - type: object
              properties:
                rfid:
                  type: string
                  description: |
                    The RFID is 16 character number
                  minLength: 15
                  maxLength: 16
              required:
                - rfid
            - type: object
              properties:
                nlisId:
                  type: string
                  description: "The NLISID is 16 character alphanumeric value. "
                  minLength: 16
                  maxLength: 16
              required:
                - nlisId
    ValidationError:
      properties:
        field:
          type: string
          title: Message
        message:
          type: string
          title: Error Type
      type: object
      required:
        - field
        - message
      title: ValidationError
```
