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

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

# Function: deleteStorefrontScapi()

> **deleteStorefrontScapi**(`conn`, `params`): `Promise`\<\{ `raw`: `unknown`; \}\>

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

Deletes a storefront (MRT project) by ID via the SCAPI MRT Storefronts API.
Returns 202 Accepted with the storefront in the `delete_in_progress` setup
status; poll the storefront by ID to track deletion.

## Parameters

### conn

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

### params

#### storefrontId

`string`

## Returns

`Promise`\<\{ `raw`: `unknown`; \}\>

## Throws

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