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

# Remove a DEA registration

> Remove a registration from the prescriber's record. This does not delete it: `is_active` becomes false
and it is no longer used for controlled-substance checks. Re-post the number to restore it.




## OpenAPI

````yaml /openapi-public.yml delete /api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id}
openapi: 3.0.3
info:
  title: Blend API
  version: 1.0.0
  description: API for Blend
servers:
  - url: https://api.byblend.com
    description: Blend production server
security:
  - bearerAuth: []
tags:
  - name: Orders
    description: Order management endpoints
  - name: Patients
    description: Patient management endpoints
  - name: Reports
    description: Reporting endpoints
  - name: Products and Materials
    description: Product catalog and inventory endpoints
  - name: Electronic Prescriptions
    description: Electronic prescription management endpoints
  - name: Exceptions
    x-group: Exceptions (Stuck Orders)
    description: Stuck order and prescription exceptions, and responses to them
  - name: Prescriptions
    description: Prescription management endpoints
  - name: Authentication
    description: Authentication endpoints
  - name: Notifications
    description: User management endpoints
  - name: Prescribers
paths:
  /api/v1/prescribers/{prescriber_id}/dea-registrations/{registration_id}:
    delete:
      tags:
        - Prescribers
      summary: Remove a DEA registration
      description: >
        Remove a registration from the prescriber's record. This does not delete
        it: `is_active` becomes false

        and it is no longer used for controlled-substance checks. Re-post the
        number to restore it.
      parameters:
        - name: prescriber_id
          in: path
          required: true
          description: Unique (UUID) identifier, or 10-digit NPI, for the prescriber
          schema:
            type: string
        - name: registration_id
          in: path
          required: true
          description: Unique (UUID) identifier for the DEA registration
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: DEA registration removed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PrescriberDeaRegistration'
        '404':
          description: Prescriber or registration not found
components:
  schemas:
    PrescriberDeaRegistration:
      type: object
      description: >
        A DEA registration held by a prescriber. A prescriber may hold several
        (DEA registrations are per state).

        `status`, `expires_at`, `schedules`, `state` and `registered_address`
        are filled from the federal DEA

        registrant file by Blend's recurring registry check; a newly added
        registration is `unverified` until

        that check sees it. Use `is_valid` to decide whether a registration can
        be relied on right now.
      allOf:
        - $ref: '#/components/schemas/ID'
        - type: object
          properties:
            prescriber_id:
              type: string
              format: uuid
            dea_number:
              type: string
              example: BM1104429
              description: >-
                9-character DEA registration number (2 letters + 7 digits, valid
                check digit)
            state:
              type: string
              example: TN
              description: >-
                State the registration is held in (from the registry once
                verified)
            business_activity_code:
              type: string
              nullable: true
              example: C
              description: >-
                DEA business activity code (C practitioner, M mid-level
                practitioner, ...)
            schedules:
              type: array
              items:
                type: string
              example:
                - '2'
                - 2N
                - '3'
                - 3N
                - '4'
                - '5'
              description: >-
                Schedule flags as the DEA registry spells them (N =
                non-narcotic)
            registered_address:
              type: object
              nullable: true
              description: Registered address from the DEA registry
            registry_name:
              type: string
              nullable: true
              example: MONROE, LINDA P
            expires_at:
              type: string
              format: date
              nullable: true
              example: '2028-01-31'
            status:
              type: string
              enum:
                - unverified
                - active
                - expired
                - inactive
                - not_found
                - revoked
                - suspended
              description: >
                `unverified` until the registry check sees the number; then
                `active`, `expired`, `inactive`

                (surrendered / retired / revoked per the registry) or
                `not_found`. `revoked` and `suspended`

                are set by hand when DEA notifies the pharmacy ahead of the
                registry file and are never

                overwritten by the check.
            status_changed_at:
              type: string
              format: date-time
              nullable: true
            last_verified_at:
              type: string
              format: date-time
              nullable: true
            source:
              type: string
              example: manual
            is_active:
              type: boolean
              description: >-
                False once the registration has been removed from the
                prescriber's record
            is_valid:
              type: boolean
              description: >-
                On the record, `active` in the registry, and not past
                `expires_at`
            is_expiring_soon:
              type: boolean
              description: Expires within the next 30 days
            notes:
              type: string
              nullable: true
            created_at:
              type: string
              format: date-time
            updated_at:
              type: string
              format: date-time
    ID:
      type: object
      properties:
        id:
          type: string
          format: uuid
          description: Unique identifier
          example: 0227d1e5-ba9a-42b5-8fe2-38882aa65708
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.