티스토리 뷰
S3=s3://bucket/asdf/
aws s3 rm ${S3} --recursive
BUCKET=`echo ${S3} | egrep -o 's3://[^/]*' | sed -e s/s3:\\\\/\\\\///g`
PREFIX=`echo ${S3} | sed -e s/s3:\\\\/\\\\/${BUCKET}\\\\///g`
aws s3api list-object-versions \
--bucket ${BUCKET} \
--prefix ${PREFIX} |
jq -r '.Versions[] | .Key + " " + .VersionId' |
while read key id ; do
aws s3api delete-object \
--bucket ${BUCKET} \
--key ${key} \
--version-id ${id} >> versions.txt
done
aws s3api list-object-versions \
--bucket ${BUCKET} \
--prefix ${PREFIX} |
jq -r '.DeleteMarkers[] | .Key + " " + .VersionId' |
while read key id ; do
aws s3api delete-object \
--bucket ${BUCKET} \
--key ${key} \
--version-id ${id} >> delete_markers.txt
done
How do I delete a versioned bucket in AWS S3 using the CLI?
I have tried both s3cmd: $ s3cmd -r -f -v del s3://my-versioned-bucket/ And the AWS CLI: $ aws s3 rm s3://my-versioned-bucket/ --recursive But both of these commands simply add DELETE markers t...
stackoverflow.com
How do I delete a versioned bucket in AWS S3 using the CLI?
I have tried both s3cmd: $ s3cmd -r -f -v del s3://my-versioned-bucket/ And the AWS CLI: $ aws s3 rm s3://my-versioned-bucket/ --recursive But both of these commands simply add DELETE markers t...
stackoverflow.com
https://cloud.yandex.com/en/docs/storage/operations/objects/delete-all
Yandex
Finds everything
cloud.yandex.com
https://docs.aws.amazon.com/cli/latest/reference/s3api/delete-object.html
delete-object — AWS CLI 1.27.45 Command Reference
Note: You are viewing the documentation for an older major version of the AWS CLI (version 1). AWS CLI version 2, the latest major version of AWS CLI, is now stable and recommended for general use. To view this page for the AWS CLI version 2, click here. F
docs.aws.amazon.com
'공부' 카테고리의 다른 글
[aws] s3 bucket list (0) | 2023.01.07 |
---|---|
[airflow] `(reached max retries: 4): Rate exceeded` (0) | 2023.01.07 |
[sh] cp all files (add hidden files) (0) | 2023.01.05 |
[sh] docker image `RUN yum install -y awscli` (0) | 2023.01.05 |
[sh] ignore error `cp from to | true` (0) | 2023.01.05 |
- Total
- Today
- Yesterday
- 연애학개론
- 테슬라 리퍼럴 코드
- 개리마커스
- 레퍼럴
- 팔로워 수 세기
- follower
- 테슬라 추천
- 모델y
- 김달
- 테슬라 레퍼럴 적용 확인
- 책그림
- 테슬라
- 테슬라 리퍼럴 코드 혜택
- 할인
- 어떻게 능력을 보여줄 것인가?
- 유투브
- 테슬라 레퍼럴 코드 확인
- 모델 Y 레퍼럴
- Kluge
- 클루지
- 인스타그램
- COUNT
- Bot
- 메디파크 내과 전문의 의학박사 김영수
- 테슬라 레퍼럴
- wlw
- 테슬라 크레딧 사용
- 테슬라 리퍼럴 코드 생성
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |