---
title: "discountCodeRedeemCodeBulkDelete"
description: "delete discount redeem codes in bulk."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/mutations/discount-code-redeem-code-bulk-delete'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/mutations/discount-code-redeem-code-bulk-delete.md'
---
# discountCodeRedeemCodeBulkDelete

delete discount redeem codes in bulk.

- **Required Scopes:** `write_discounts`
- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Mutation

## Type Signature

`DiscountCodeRedeemCodeBulkDeletePayload`

## Required Permissions

* `write_discounts`

An access token is required to call this API. Refer to [Authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md) for more information about how to obtain the token.

## Arguments

* `discountId`

  [ID!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  Discount code IDs

* `ids`

  [[ID]](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The IDs of the discount codes to be removed.

## Returns

* `job`

  [Job](https://developer.shopline.com/docs/admin-graph-ql-api/common-objects/objects/job.md)

  An asynchronous job to remove discount redemption codes.

* `userErrors`

  [[DiscountUserError!]!](https://developer.shopline.com/docs/admin-graph-ql-api/discounts-and-marketing/objects/discount-user-error.md)

  A list of mistakes that happen during mutation execution.

## Code Example

```graphql
mutation discountCodeRedeemCodeBulkDelete($discountId: ID! $ids: [ID] ) {
	discountCodeRedeemCodeBulkDelete(discountId: $discountId, ids: $ids ) 
		 {
			# DiscountCodeRedeemCodeBulkDeletePayload fields
		}
		
	}

```

## Variables

```json
{
  "discountId": {},
  "ids": {}
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

