For the complete documentation index, see llms.txt. Markdown versions of documentation pages are available by appending .md to page URLs.
Skip to content

Bulk Delete

is responsible for deleting multiple records

Endpoint: /api/resources/[RESOURCE-ID]/bulk/bulkDelete

Method: POST

Request:

  • recordIds - list of ids of the records to be deleted

Response:

  • records - list of records with resource metadata

  • record - record you're requesting

    • params - all record data

    • id - record id

    • title - record title

    • recordActions- list all actions and their parameters available on this record

    • bulkActions- list of all bulk actions and their parameters available on this record

  • notice

    • message - the message that is later displayed in the dashboard

    • type - a type of response, possible values are success,danger,info

  • redirectUrl - URL that the user should be directed to after successfully edit

Example

Endpoint: https://demo.adminjs.co/admin/api/resources/User/bulk/bulkDelete?recordIds=63d3af2ab1b453f9303c81d0&recordIds=63d3af2ab1b453f9303c81d1

Response:

Last updated