

Amazon Q Business will no longer be open to new customers starting on July 31, 2026. If you would like to use the service, please sign up prior to July 30. For capabilities similar to Q Business, explore Amazon Quick. [Learn more](https://docs.aws.amazon.com/amazonq/latest/qbusiness-ug/qbusiness-availability-change.html).

# Deleting documents uploaded in an Amazon Q Business application
<a name="delete-doc-upload"></a>

To delete documents that have been directly uploaded to an application environment, you can use the console or the [https://docs.aws.amazon.com/amazonq/latest/api-reference/API_BatchDeleteDociment.html](https://docs.aws.amazon.com/amazonq/latest/api-reference/API_BatchDeleteDociment.html) API operation. You can delete specific documents or all documents.

The following tabs provide a procedure for the AWS Management Console and code examples for the AWS CLI.

------
#### [ Console ]

**To delete specific directly uploaded documents** 

1. Sign in to the AWS Management Console and open the Amazon Q Business console.

1. In **Applications**, select the name of the application environment that your uploaded files belong to.

1. From your applications page, from **Data sources**, choose **Uploaded files**.

1. In **Uploaded files**, choose **Document name**, and then select the documents that you want to delete.
**Note**  
You can choose up to 10 files at a time.

1. Choose **Delete files**.

   You are returned to the service console while your application environment is deleted. When the deletion process is complete, the console displays a message confirming successful deletion.

------
#### [ AWS CLI ]

**To delete documents**

```
aws qbusiness batch-delete-document \
--application-id {{application-id}} \
--index-id {{index-id}} \
--documents {{documents-to-delete}} \
--data-source-sync-id {{data-source-sync-id}}
```

------