deleteCommerceStoreByStoreid method

Future<void> deleteCommerceStoreByStoreid(
  1. String storeid
)

Delete a storefront, keeping a recoverable copy

Removes the addressed store and answers 204 with no body. Before the live row goes, the entity is written once more under a tombstone kind, so the deletion leaves a recoverable copy rather than destroying the record outright; the store's listing overrides live inside that row and go with it. The id is resolved inside the caller org's own namespace, so an unknown or foreign id is 404. Requires an admin or store-write token.

Parameters:

Implementation

Future<void> deleteCommerceStoreByStoreid(String storeid,) async {
  final response = await deleteCommerceStoreByStoreidWithHttpInfo(storeid,);
  if (response.statusCode >= HttpStatus.badRequest) {
    throw ApiException(response.statusCode, await _decodeBodyBytes(response));
  }
}