> 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 # BulkDeleteInfoSections # Package: catalogV3 # Namespace: InfoSectionsService # Method link: https://dev.wix.com/docs/api-reference/business-solutions/stores/catalog-v3/info-sections-v3/bulk-delete-info-sections.md ## Permission Scopes: Info section write in v3 catalog: SCOPE.STORES.INFO_SECTION_WRITE ## Introduction Deletes multiple info sections. --- ## REST API ### Schema ``` Method: bulkDeleteInfoSections Description: Deletes multiple info sections. URL: https://www.wixapis.com/stores/v3/bulk/info-sections/delete Method: POST # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: infoSectionIds Method parameters: param name: infoSectionIds | type: array | description: IDs of info sections to delete. | required: true Return type: BulkDeleteInfoSectionsResponse - name: results | type: array | description: Info sections deleted by bulk action - name: itemMetadata | type: ItemMetadata | description: Bulk action metadata for info section. - name: id | type: string | description: Item GUID. Should always be available, unless it's impossible (for example, when failing to create an item). - name: originalIndex | type: integer | description: Index of the item within the request array. Allows for correlation between request and response items. - name: success | type: boolean | description: Whether the requested action was successful for this item. When `false`, the `error` field is populated. - name: error | type: ApplicationError | description: Details about the error in case of failure. - name: code | type: string | description: Error code. - name: description | type: string | description: Description of the error. - name: data | type: object | description: Data related to the error. - name: bulkActionMetadata | type: BulkActionMetadata | description: Bulk action metadata. - name: totalSuccesses | type: integer | description: Number of items that were successfully processed. - name: totalFailures | type: integer | description: Number of items that couldn't be processed. - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded. ``` ### Examples ### Bulk Update Info Sections Bulk Update Info Sections. ```curl curl -X POST \ 'https://www.wixapis.com/stores/v3/bulk/info-sections/delete' \ -H 'Content-Type: application/json' \ -H 'Authorization: ' \ -d '{ "infoSectionIds": [ "6828c582-550f-44c9-93f0-9b7d29585c96", "a1caf1a5-d23c-4456-bdd8-32c3c65d51e8" ] }' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.catalogV3.InfoSectionsService.bulkDeleteInfoSections(infoSectionIds) Description: Deletes multiple info sections. # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: infoSectionIds Method parameters: param name: infoSectionIds | type: array | description: IDs of info sections to delete. | required: true Return type: PROMISE - name: results | type: array | description: Info sections deleted by bulk action - name: itemMetadata | type: ItemMetadata | description: Bulk action metadata for info section. - name: _id | type: string | description: Item GUID. Should always be available, unless it's impossible (for example, when failing to create an item). - name: originalIndex | type: integer | description: Index of the item within the request array. Allows for correlation between request and response items. - name: success | type: boolean | description: Whether the requested action was successful for this item. When `false`, the `error` field is populated. - name: error | type: ApplicationError | description: Details about the error in case of failure. - name: code | type: string | description: Error code. - name: description | type: string | description: Description of the error. - name: data | type: object | description: Data related to the error. - name: bulkActionMetadata | type: BulkActionMetadata | description: Bulk action metadata. - name: totalSuccesses | type: integer | description: Number of items that were successfully processed. - name: totalFailures | type: integer | description: Number of items that couldn't be processed. - name: undetailedFailures | type: integer | description: Number of failures without details because detailed failure threshold was exceeded. ``` ### Examples ### bulkDeleteInfoSections ```javascript import { infoSectionsV3 } from '@wix/stores'; async function bulkDeleteInfoSections(infoSectionIds) { const response = await infoSectionsV3.bulkDeleteInfoSections(infoSectionIds); }; ``` ### bulkDeleteInfoSections (with elevated permissions) ```javascript import { infoSectionsV3 } from '@wix/stores'; import { auth } from '@wix/essentials'; async function myBulkDeleteInfoSectionsMethod(infoSectionIds) { const elevatedBulkDeleteInfoSections = auth.elevate(infoSectionsV3.bulkDeleteInfoSections); const response = await elevatedBulkDeleteInfoSections(infoSectionIds); } ``` ### bulkDeleteInfoSections (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { infoSectionsV3 } from '@wix/stores'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { infoSectionsV3 }, // Include the auth strategy and host as relevant }); async function bulkDeleteInfoSections(infoSectionIds) { const response = await myWixClient.infoSectionsV3.bulkDeleteInfoSections(infoSectionIds); }; ``` ---