> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # Method name: deleteFulfillment(identifiers: DeleteFulfillmentIdentifiers) # Method package: wixEcomBackend # Method menu location: wixEcomBackend --> orderFulfillments --> deleteFulfillment # Method Link: https://dev.wix.com/docs/velo/apis/wix-ecom-backend/order-fulfillments/delete-fulfillment.md # Method Description: Deletes an existing order fulfillment. The `deleteFulfillment()` function returns a Promise that resolves when the fulfillment is deleted. # Method Code Examples: *** Note: do not assume any prop names or enum values other than the ones in the example. ## Delete a fulfillment (dashboard page code) ```javascript import { orderFulfillments } from 'wix-ecom-backend'; /* Sample identifiers value: * { * orderId: 'e613320a-8e8f-4f8f-9d87-b5edc9f99788', * fulfillmentId: '91357295-a95c-4973-b210-281640f3e795' * }; */ export async function myDeleteFulfillmentFunction(identifiers) { try { const { orderWithFulfillments } = await orderFulfillments.deleteFulfillment(identifiers); const fulfillmentsArray = orderWithFulfillments.fulfillments; console.log('Success! Deleted fulfillment', orderWithFulfillments); return orderWithFulfillments; } catch (error) { console.error(error); // Handle the error } } /* Promise resolves to: * * { * "orderWithFulfillments": { * "orderId": "e613320a-8e8f-4f8f-9d87-b5edc9f99788", * "fulfillments": [] * } * } * */ ``` ## Delete a fulfillment (export from backend code) ```javascript import { Permissions, webMethod } from 'wix-web-module'; import { orderFulfillments } from 'wix-ecom-backend'; /* Sample identifiers value: * { * orderId: 'e613320a-8e8f-4f8f-9d87-b5edc9f99788', * fulfillmentId: '91357295-a95c-4973-b210-281640f3e795' * }; */ export const myDeleteFulfillmentFunction = webMethod(Permissions.Anyone, async (identifiers) => { try { const { orderWithFulfillments } = await orderFulfillments.deleteFulfillment(identifiers); const fulfillmentsArray = orderWithFulfillments.fulfillments; console.log('Success! Deleted fulfillment', orderWithFulfillments); return orderWithFulfillments; } catch (error) { console.error(error); // Handle the error } }); /* Promise resolves to: * * { * "orderWithFulfillments": { * "orderId": "e613320a-8e8f-4f8f-9d87-b5edc9f99788", * "fulfillments": [] * } * } * */ ``` ---