1 delete:
2 operationId: DeleteSearchIndexesId
3 summary: Delete a Search Index
4 description: >-
5 Delete a search index and every physical index built for it in the search
6 engine. The index's definition isn't removed, so the next time search index
7 migrations run, the index is built again from scratch at version 1.
8 externalDocs:
9 description: Learn about reindexing and index migrations
10 url: >-
11 https://docs.medusajs.com/resources/infrastructure-modules/search/reindexing
12 x-authenticated: true
13 parameters:
14 - name: id
15 in: path
16 description: The search index's name, such as `product`.
17 required: true
18 schema:
19 type: string
20 security:
21 - api_token: []
22 - cookie_auth: []
23 - jwt_token: []
24 x-codeSamples:
25 - lang: JavaScript
26 label: JS SDK
27 source:
28 $ref: ../code_samples/JavaScript/admin_search-indexes_{id}/delete.js
29 - lang: Shell
30 label: cURL
31 source:
32 $ref: ../code_samples/Shell/admin_search-indexes_{id}/delete.sh
33 tags:
34 - Search Indexes
35 responses:
36 '200':
37 description: OK
38 content:
39 application/json:
40 schema:
41 $ref: ../components/schemas/AdminSearchIndexDeleteResponse.yaml
42 '400':
43 $ref: ../components/responses/400_error.yaml
44 '401':
45 $ref: ../components/responses/unauthorized.yaml
46 '404':
47 $ref: ../components/responses/not_found_error.yaml
48 '409':
49 $ref: ../components/responses/invalid_state_error.yaml
50 '422':
51 $ref: ../components/responses/invalid_request_error.yaml
52 '500':
53 $ref: ../components/responses/500_error.yaml
54 x-workflow: deleteSearchIndexWorkflow
55 x-events: []