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.paymentCollection.delete("paycol_123") .then(({ deleted }) => { console.log(deleted) })
200
Example
{ "id": "<string>", "object": "payment-collection", "deleted": true}
Delete a payment collection.
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
The payment collection's ID.
OK
The result of deleting the payment collection.
The name of the object that was deleted.
Whether the object was deleted.