# Delete a list of documents

This action allows you to delete a list of documents from a Firestore collection, by providing their IDs.

***

## <mark style="color:blue;">Inputs and Settings</mark>

<div align="left"><figure><img src="https://284736847-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiWu3FezEjWxrPbkf8zIP%2Fuploads%2FS5SMbUqjz5COV1PqHjut%2Fimage.png?alt=media&#x26;token=bfd91b65-36aa-4dfc-bd76-ecc99639cad8" alt=""><figcaption></figcaption></figure></div>

### Documents  IDs (list)

The list of IDs of the documents you want to delete.

### Collection

The name or ID of the collection the documents you want to delete are stored in.

### Trigger ID (optional)

This will link the action with a [Action Listener](https://estare.gitbook.io/firebase-auth-firestore-and-storage-plugin/plugin-elements/firebase-action-listener) of the same ID.&#x20;

If left blank, all listeners on the page with blank ID's will be triggered at the same time, so we suggest to always define a Trigger ID.

When the function finishes running, it will trigger the [List Operation Finished](https://estare.gitbook.io/firebase-auth-firestore-storage-plugin/plugin-elements/firebase-action-listener#list-operation-finished) event.

***

## <mark style="color:blue;">Triggered events</mark>

Those events are triggered by an [Action Listener](https://estare.gitbook.io/firebase-auth-firestore-and-storage-plugin/plugin-elements/firebase-action-listener) with the same ID as the [Trigger ID](#trigger-id-optional) provided on the action.

* List Operation Finished (if the action was successful)
* Error in Action (if an error occurs)

***

## <mark style="color:blue;">Stored values on the listener</mark>

### Error Message

If an error occurs, you can check its details on this state on the action listener.
