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

# Delete an access rule

> Removes an access rule from a network. The change applies immediately — what drivers can see and where they can charge may change the moment the rule is gone.



## OpenAPI

````yaml /openapi/emsp-network/openapi.yaml delete /emsp/v1/networks/{network_id}/rules/{rule_id}
openapi: 3.0.0
info:
  title: Spirii EMSP - Network & Access Control API
  description: >-
    Manages network access and location visibility for secure multi-tenant
    operation.
  version: v1
  contact: {}
servers:
  - url: https://api.spirii.com
    description: Production
security:
  - OAuth2ClientCredentials: []
tags:
  - name: Networks
    description: Network lifecycle management
paths:
  /emsp/v1/networks/{network_id}/rules/{rule_id}:
    delete:
      tags:
        - Networks
      summary: Delete an access rule
      description: >-
        Removes an access rule from a network. The change applies immediately —
        what drivers can see and where they can charge may change the moment the
        rule is gone.
      operationId: NetworkController_deleteRule_v1
      parameters:
        - name: Idempotency-Key
          in: header
          description: >-
            Client-generated unique key per operation intent (UUID). Same key +
            identical body replays the original response; same key + different
            body returns 409.
          required: true
          schema:
            type: string
            format: uuid
        - name: network_id
          required: true
          in: path
          description: The unique ID of the network the rule belongs to.
          schema:
            type: string
            format: uuid
        - name: rule_id
          required: true
          in: path
          description: The unique ID of the access rule to delete.
          schema:
            type: string
            format: uuid
      responses:
        '204':
          description: The access rule was deleted.
components:
  securitySchemes:
    OAuth2ClientCredentials:
      type: oauth2
      flows:
        clientCredentials:
          tokenUrl: /oauth/token
          scopes:
            emsp:networks:read: View network and access control configuration
            emsp:networks:write: Create/update/delete SUB networks, manage access rules
            emsp:networks:publish: Publish/drain networks (PATCH /networks/:id/publish-state)

````