aws / aws/aws-cli

Avoid failure when trying to delete a bucket that doesn't exist

Open
#9,386 2 comments 0 reactions 0 assignees View on GitHub
feature-request p3 s3
Dominant language
Python
Stars
17.3k
Forks
4.6k
Avg merge
1d 2h
Merged PRs (30d)
13

Description

### Describe the feature

Currently when launching: `aws s3 rb s3://$BUCKET_NAME --force`
I get an error if the bucket doesn't exist. I'd like to have more flexibility in this case because deleting a bucket or seeing that it doesn't exist lead to the same result (bucket absence).

### Use Case

Throwing an error is something that can prevent a program or a pipeline from being correctly executed. A warning message could be more appropriate imho.

### Proposed Solution

_No response_

### Other Information

_No response_

### Acknowledgements

- [ ] I may be able to implement this feature request
- [ ] This feature might incur a breaking change

### CLI version used

na

### Environment details (OS name and version, etc.)

na

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.