deleteCommerceStoreByStoreidWithHttpInfo method

Future<Response> deleteCommerceStoreByStoreidWithHttpInfo(
  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.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> deleteCommerceStoreByStoreidWithHttpInfo(String storeid,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/commerce/store/{storeid}'
    .replaceAll('{storeid}', storeid);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'DELETE',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}