JavaScript
import Medusa from "@medusajs/js-sdk" export const sdk = new Medusa({ baseUrl: import.meta.env.VITE_BACKEND_URL || "/", debug: import.meta.env.DEV, auth: { type: "session", }, }) sdk.admin.shippingOptionType.delete("sotype_123") .then(({ deleted }) => { console.log(deleted) })
200
Example
Delete a shipping option type.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The shipping option type's ID.
OK
The response returned after deleting a shipping option type.
The name of the deleted object.
Whether the Shipping Option Type was deleted.