---
title: "deleteOrder"
url: "https://kong-portal.millennia-solusi.xyz/apis/pizza-shackapi-1/versions/1ff7da65-7182-4ce7-a35c-b8a62959bbe2/operations/deleteOrder"
---

> Full API specification: https://kong-portal.millennia-solusi.xyz/apis/pizza-shackapi-1/versions/1ff7da65-7182-4ce7-a35c-b8a62959bbe2.md

# deleteOrder

`DELETE` `/order/{orderId}`

Operation ID: `deleteOrder`

Delete an existing Order

## Path parameters

- `orderId` (string, string, required) - Order Id

## Responses

- `200` - OK. Resource successfully deleted.
- `404` - Not Found. Resource to be deleted does not exist.

## OpenAPI definition

```yaml
openapi: 3.0.0
info:
  title: PizzaShackAPI
  version: 1.0.0
servers:
  - url: https://localhost:9443/am/sample/pizzashack/v1/api
    description: Production API server
    x-internal: false
paths:
  /order/{orderId}:
    parameters:
      - name: orderId
        in: path
        description: Order Id
        required: true
        style: simple
        explode: false
        schema:
          type: string
          format: string
    delete:
      tags:
        - order
      description: Delete an existing Order
      operationId: deleteOrder
      responses:
        "200":
          description: OK. Resource successfully deleted.
        "404":
          description: Not Found. Resource to be deleted does not exist.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/Error"
      security:
        - default: []
      x-auth-type: Application & Application User
      x-throttling-tier: Unlimited
      x-wso2-application-security:
        security-types:
          - oauth2
        optional: false
security:
  - default: []
components:
  schemas:
    Error:
      title: Error object returned with 4XX HTTP status
      required:
        - code
        - message
      properties:
        message:
          type: string
          description: Error message.
        error:
          type: array
          description: If there are more than one error list them out. Ex. list out
            validation errors by each field.
          items:
            $ref: "#/components/schemas/ErrorListItem"
        description:
          type: string
          description: A detail description about the error message.
        code:
          type: integer
          format: int64
        moreInfo:
          type: string
          description: Preferably an url with more details about the error.
    ErrorListItem:
      title: Description of individual errors that may have occurred during a request.
      required:
        - code
        - message
      properties:
        message:
          type: string
          description: Description about individual errors occurred
        code:
          type: integer
          format: int64
  securitySchemes:
    default:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: https://test.com
          scopes: {}
```
