Deleting documents uploaded in an Amazon Q Business application
To delete documents that have been directly uploaded to an application environment, you can use the console or the BatchDeleteDocument 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
-
Sign in to the AWS Management Console and open the Amazon Q Business console.
-
In Applications, select the name of the application environment that your uploaded files belong to.
-
From your applications page, from Data sources, choose Uploaded files.
-
In Uploaded files, choose Document name, and then select the documents that you want to delete.
-
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.
To delete all directly uploaded documents
-
Sign in to the AWS Management Console and open the Amazon Q Business console.
-
In Applications, select the name of the application environment that your uploaded files belong to.
-
From your applications page, from Data sources, select Uploaded files.
-
Select Actions, and then choose Delete.
-
When the deletion process is complete, the console displays a message confirming successful file deletion.
-
- AWS CLI
-
To delete documents
aws qbusiness batch-delete-document \ --application-id
application-id
\ --index-idindex-id
\ --documentsdocuments-to-delete
\ --data-source-sync-iddata-source-sync-id