> ## 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.

# Delete an MDM control

> Delete an MDM control by ID. Removing the control undeploys it from every targeted device. An unknown ID returns 404. Demo companies are not allowed to delete MDM controls (403).

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


## OpenAPI

````yaml https://api.getprimo.com/openapi.json delete /mdm-controls/{mdmControlId}
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:
  /mdm-controls/{mdmControlId}:
    delete:
      tags:
        - MdmControls
      summary: Delete an MDM control
      description: >-
        Delete an MDM control by ID. Removing the control undeploys it from
        every targeted device. An unknown ID returns 404. Demo companies are not
        allowed to delete MDM controls (403).
      operationId: deleteMdmControl
      parameters:
        - name: mdmControlId
          required: true
          in: path
          schema:
            type: string
      responses:
        default:
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteMdmControl_Output'
components:
  schemas:
    DeleteMdmControl_Output:
      type: object
      properties:
        success:
          type: boolean
          description: Whether the MDM control was deleted.
      required:
        - success
      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>`.

````