1 /**
2 * @oas [delete] /admin/tax-regions/{id}
3 * operationId: DeleteTaxRegionsId
4 * summary: Delete a Tax Region
5 * description: Delete a tax region.
6 * x-authenticated: true
7 * parameters:
8 * - name: id
9 * in: path
10 * description: The tax region's ID.
11 * required: true
12 * schema:
13 * type: string
14 * security:
15 * - api_token: []
16 * - cookie_auth: []
17 * - jwt_token: []
18 * x-codeSamples:
19 * - lang: JavaScript
20 * label: JS SDK
21 * source: |-
22 * import Medusa from "@medusajs/js-sdk"
23 *
24 * export const sdk = new Medusa({
25 * baseUrl: import.meta.env.VITE_BACKEND_URL || "/",
26 * debug: import.meta.env.DEV,
27 * auth: {
28 * type: "session",
29 * },
30 * })
31 *
32 * sdk.admin.taxRegion.delete("txreg_123")
33 * .then(({ deleted }) => {
34 * console.log(deleted)
35 * })
36 * - lang: Shell
37 * label: cURL
38 * source: |-
39 * curl -X DELETE '{backend_url}/admin/tax-regions/{id}' \
40 * -H 'Authorization: Bearer {jwt_token}'
41 * tags:
42 * - Tax Regions
43 * responses:
44 * "200":
45 * description: OK
46 * content:
47 * application/json:
48 * schema:
49 * $ref: "#/components/schemas/AdminTaxRegionDeleteResponse"
50 * "400":
51 * $ref: "#/components/responses/400_error"
52 * "401":
53 * $ref: "#/components/responses/unauthorized"
54 * "404":
55 * $ref: "#/components/responses/not_found_error"
56 * "409":
57 * $ref: "#/components/responses/invalid_state_error"
58 * "422":
59 * $ref: "#/components/responses/invalid_request_error"
60 * "500":
61 * $ref: "#/components/responses/500_error"
62 * x-workflow: deleteTaxRegionsWorkflow
63 * x-events: []
64 *
65 */
66