> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.shopify.discounts.DeleteDiscountCode

- Component: `appmixer.shopify.discounts.DeleteDiscountCode`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.shopify 4.1.0](https://connectors.appmixer.com/connector/appmixer.shopify/4.1.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.shopify/4.1.0/component/appmixer.shopify.discounts.DeleteDiscountCode>

Delete a code discount together with all its discount codes.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Discount ID (`id`) | text | The ID of the discount, e.g. **gid://shopify/DiscountCodeNode/2382143062097** or **2382143062097** — the **Discount ID** output of Create Discount Code or Get Discount Code. |

## Output ports

### Port `out`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.shopify.discounts.DeleteDiscountCode",
  "description": "Delete a code discount together with all its discount codes.",
  "author": "Appmixer <info@appmixer.com>",
  "private": false,
  "auth": {
    "service": "appmixer:shopify",
    "scope": [
      "read_discounts",
      "write_discounts"
    ]
  },
  "quota": {
    "manager": "appmixer:shopify",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          }
        },
        "required": [
          "id"
        ]
      },
      "inspector": {
        "inputs": {
          "id": {
            "type": "text",
            "label": "Discount ID",
            "index": 0,
            "tooltip": "The ID of the discount, e.g. <b>gid://shopify/DiscountCodeNode/2382143062097</b> or <b>2382143062097</b> — the <b>Discount ID</b> output of Create Discount Code or Get Discount Code."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {}
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
