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

# Archive (delete) a charging station

> Irreversibly archives a charging station. Sets `archivedAt` and clears the embedded payment terminal in a single atomic write; the record becomes immutable afterwards. Operator-facing UIs present this as "Delete". There is no restore.




## OpenAPI

````yaml /api/specs/assetManagement-api.json post /asset-management/v1/assets/{assetId}/archive
openapi: 3.0.0
info:
  title: Lynkwell API
  version: 1.376.0
  description: API Documentation for assetManagement service
servers:
  - url: https://api.lynkwell.com
security: []
tags: []
paths:
  /asset-management/v1/assets/{assetId}/archive:
    post:
      tags:
        - Assets
      summary: Archive (delete) a charging station
      description: >
        Irreversibly archives a charging station. Sets `archivedAt` and clears
        the embedded payment terminal in a single atomic write; the record
        becomes immutable afterwards. Operator-facing UIs present this as
        "Delete". There is no restore.
      parameters:
        - in: path
          name: assetId
          schema:
            type: string
          required: true
          description: The ID of the asset to archive
      responses:
        '200':
          description: >
            Success. Returns the archived asset with `archivedAt` populated.
            Archiving an already-archived asset is an idempotent no-op that
            returns the existing record.
        '404':
          description: The asset was not found.
        '409':
          description: >
            Archive blocked — the station is online with a connector in use
            (`ACTIVE_CONNECTOR`), or the station has a session that has not
            settled (`ACTIVE_SESSION`): any status other than COMPLETE or
            DENIED. The session check applies regardless of connectivity, so a
            station that went offline mid-transaction is still blocked.
        '500':
          description: Internal Server Error
      security:
        - oauth2:
            - write:asset
components:
  securitySchemes:
    oauth2:
      type: oauth2
      description: OAuth2 Client Credentials Flow
      flows:
        clientCredentials:
          tokenUrl: https://lynkwell-prod.us.auth0.com/oauth/token
          scopes:
            read:asset: Retrieve assets
            write:asset: Create and update assets
            read:assetgroup: Retrieve asset groups
            write:assetgroup: Create and update asset groups
            read:assetstatus: Retrieve asset statuses
            read:chargingstationmodel: Retrieve charging station models
            write:chargingstationmodel: Create and update charging station models
            write:network: Create and update networks
            write:sitepartner: Create and update site partners
            read:sitepartner: Retrieve site partners
            write:sitepartneruser: Create and update site partner users
            read:sitepartneruser: Retrieve site partner users
            read:networkaccessprofile: Retrieve network access profiles
            write:paymentprofile: Create payment profile
            write:onboardinglink: Create an onboarding link
            read:invoice: Retrieve an invoice
            write:session: Create or update a session
            read:session: Retrieve a session
            write:ticket: Create a ticket
            write:verificationcode: Send and confirm verification codes
            write:driver: Create and update drivers
            read:driver: Retrieve drivers
            write:token: Create and update tokens
            read:token: Retrieve tokens
            read:tokenvalue: Retrieve token by ID including its value
            write:invitecode: Create and update invite codes
            write:invitation: Create and update invitations
            read:invitation: Retrieve invitations
            read:payment_terminals_payment: Read payments from payment terminal
            abort:session: Abruptly end session
            read:paymentprofile: Retrieve payment profile from payment terminal
            write:ocpp: Sends request over OCPP
            write:ocpp.raw_request: Sends raw request over OCPP
            write:notification.email: Create and update email
            read:invoiceitem: Retrieve invoice item
            read:subscription: Retrieve subscription
            write:plugandcharge_enrollment: Update Plug and Charge enrollment status
            write:projects: Create and update projects
            read:projects: Retrieve projects
            write:project_stations: Create and update project stations
            write:panel: Create and update panels.
            read:panel: Retrieve panels.
            write:webhooks: Create, update, and delete webhooks
            read:webhooks: Retrieve webhooks

````