---
title: "Comment by Shaheer on \"Step-By-Step: Emptying S3 Buckets and Directories Using the AWS CLI with S3 RM\" | Hashnode"
description: "Great article. I have a question regarding the speed. In the article if we compare the removing multiple files command to the removing files with a path prefix."
url: "https://hashnode.com/posts/aws-s3-rm-removing-files/6423bd7544c6044aa5f7c893/comment/6480a520d78f394331bf1d6a"
---

[Discussion](https://hashnode.com/posts/aws-s3-rm-removing-files/6423bd7544c6044aa5f7c893)

Comment [Step-By-Step: Emptying S3 Buckets and Directories Using the AWS CLI with S3 RM](https://hashnode.com/posts/aws-s3-rm-removing-files/6423bd7544c6044aa5f7c893)

[Shaheer](https://hashnode.com/@BMLL)

[Jun 7, 2023](https://hashnode.com/posts/aws-s3-rm-removing-files/6423bd7544c6044aa5f7c893/comment/6480a520d78f394331bf1d6a)

Great article. I have a question regarding the speed. In the article if we compare the removing multiple files command to the removing files with a path prefix. Is there any chance one might be faster than the other? I have a gigantic bucket and even a small difference could mean a lot for me. My reasoning behind is that a prefix like "content/_.pdf" is checking for yet another additional thing hence the query should take longer if the include prefix was simply "_.pdf" Would really appreciate getting that information.
