Skip to content

How to properly use include exclude parameters #6988

Answered by tim-finnigan
jtroeth1 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @jtroeth1 I think you want to add the --recursive flag to your command and use "*.txt" like this:

aws s3 rm s3://plotlogicdevelopers/JAMES/ --exclude "*" --include "*.txt" --dryrun --recursive

Here is the rm documentation for reference: https://docs.aws.amazon.com/cli/latest/reference/s3/rm.html

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tim-finnigan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants