---
editLink: false
lastUpdated: false
---

[@salesforce/b2c-tooling-sdk](../../../modules.md) / [operations/mrt](../index.md) / deleteRedirectScapi

# Function: deleteRedirectScapi()

> **deleteRedirectScapi**(`conn`, `params`): `Promise`\<`void`\>

Defined in: [packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts:860](https://github.com/SalesforceCommerceCloud/b2c-developer-tooling/blob/8fc17d8708d025c83fb0c44ca73198a200605153/packages/b2c-tooling-sdk/src/operations/mrt/redirect.ts#L860)

Deletes a redirect by its UUID via the SCAPI MRT Environments API. The
endpoint returns 204 No Content on success — there is no response body, so
only `error` is inspected.

## Parameters

### conn

[`ScapiMrtConnection`](../interfaces/ScapiMrtConnection.md)

### params

#### environmentId

`string`

#### redirectId

`string`

#### storefrontId

`string`

## Returns

`Promise`\<`void`\>

## Throws

carrying the HTTP status on a non-2xx response.
