Delete a workspace and everything in it
DELETE
/api/v1/workspaces/{workspaceId}
const url = 'https://api.crossmart.io/api/v1/workspaces/example';const options = { method: 'DELETE', headers: {'Content-Type': 'application/json'}, body: '{"confirmName":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.crossmart.io/api/v1/workspaces/example \ --header 'Content-Type: application/json' \ --data '{ "confirmName": "example" }'Disconnects every store (removing the app unless another workspace uses the store), then deletes products, stock, listings, orders, activity and API keys. It cannot be undone.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”workspaceId
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
confirmName
required
The workspace’s name, typed to confirm: deleting it cannot be undone
string
Example generated
{ "confirmName": "example"}