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

# Delete one event



## OpenAPI

````yaml /openapi/pocketmusala-developer-api-v1.yaml delete /v1/mosques/{mosqueId}/events/{eventId}
openapi: 3.1.0
info:
  title: PocketMusala Developer API
  version: 1.0.0
  summary: Mosque sync API for trusted external servers.
  license:
    name: Proprietary
    identifier: LicenseRef-PocketMusala-Proprietary
  description: >
    The PocketMusala Developer API lets trusted external servers sync approved
    mosque profile, prayer, announcement, and event data. API key creation,
    scope selection, rotation, and revocation stay inside the authenticated
    PocketMusala Developer API portal.
servers:
  - url: https://api.pocketmusala.com
    description: Official API
security:
  - bearerAuth: []
tags:
  - name: Health
    description: Service availability endpoints.
  - name: Capabilities
    description: Supported resources, fields, scopes, and prayer keys.
  - name: Snapshot
    description: Combined read endpoints for weekly sync verification.
  - name: Profile
    description: Approved public mosque profile fields.
  - name: Announcements
    description: Mosque announcement sync endpoints.
  - name: Prayers
    description: Manual prayer-time row sync endpoints.
  - name: Events
    description: Mosque event sync endpoints.
paths:
  /v1/mosques/{mosqueId}/events/{eventId}:
    delete:
      tags:
        - Events
      summary: Delete one event
      operationId: deleteMosqueEvent
      parameters:
        - $ref: '#/components/parameters/MosqueId'
        - $ref: '#/components/parameters/EventId'
        - $ref: '#/components/parameters/RequestId'
      responses:
        '200':
          description: Deleted event id.
          content:
            application/json:
              schema:
                type: object
                required:
                  - eventId
                properties:
                  eventId:
                    type: string
                    format: uuid
        4XX:
          $ref: '#/components/responses/Error'
        default:
          $ref: '#/components/responses/Error'
components:
  parameters:
    MosqueId:
      name: mosqueId
      in: path
      required: true
      schema:
        type: string
        format: uuid
    EventId:
      name: eventId
      in: path
      required: true
      schema:
        type: string
        format: uuid
    RequestId:
      name: X-Request-Id
      in: header
      required: false
      schema:
        type: string
        minLength: 1
      description: Partner-generated request id used for logs and support.
  responses:
    Error:
      description: Stable JSON error envelope.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorEnvelope'
  schemas:
    ErrorEnvelope:
      type: object
      required:
        - error
      properties:
        error:
          type: object
          required:
            - code
            - message
            - requestId
            - troubleshooting
          properties:
            code:
              type: string
              examples:
                - missing_api_key
                - malformed
                - revoked
                - wrong_community
                - missing_scope
                - invalid_argument
                - invalid_prayer_time
                - not_found
            message:
              type: string
            requestId:
              type: string
            troubleshooting:
              $ref: '#/components/schemas/TroubleshootingState'
    TroubleshootingState:
      type: object
      required:
        - code
        - severity
        - adminSummary
        - developerSummary
      properties:
        code:
          type: string
        severity:
          type: string
          enum:
            - success
            - warning
            - error
        adminSummary:
          type: string
        developerSummary:
          type: string
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: PocketMusala Developer API key from the authenticated portal.

````