Skip to main content

Minio-mc-delete

Based on the link: https://min.io/docs/minio/linux/reference/minio-mc.html

Today, I learned how to use the mc command to delete old files in Minio buckets.


First of all,  we should install mc to our host, for example I use centos so I will execute those command.

64-bit Intel

curl https://dl.min.io/client/mc/release/linux-amd64/mc \
  --create-dirs \
  -o $HOME/minio-binaries/mc

chmod +x $HOME/minio-binaries/mc
export PATH=$PATH:$HOME/minio-binaries/

mc --help

Second of all, we need to config a link to minio server.

mc alias set myminio https://minioserver.example.net ACCESS_KEY SECRET KEY

Third of all, we can use mc to list all buckets of Minio.

mc ls myminio

Finally of all, we can delete files.

mc rm --recursive myminio/data --force

Comments

Popular posts from this blog

The scorecard for becoming an English person on Friday, February 16, 2024, is as follows.

  The scorecard for becoming an English person on Friday, February 16, 2024, is as follows. Personal development Goals I’ll take a real IELTS exam on second of March. I want to get a band 6 score on the IELTS exam. Distance exam in 15 days.(second of March) Listening test. 8:4/4-18(only part1 and part2) Reading test. 8:1/2-18(only part1 and part2) Writing test. 3-30(only part1 and part2) 0 hour Speaking test. 10-30(only part1 and part2) 0 hours Sentence dictation. 70(68)-6000 I would like to live in Calgary or Edmonton of Canada. English first As a Senior developer I need to master ****15,000+ vocabulary words. Reading 9568 Listening 5881 Health Meditation + Sit in meditation 2 minutes morning anywhere The New Testament Matthew 23:34-28 2 minutes page 101(1)-1047 anytime Home Exercise + Martial arts 10 minutes anytime anywhere Sword 10 minutes morning Park or Home Stick 10 minutes morning Park or...

The scorecard for becoming an English person on Sunday, July 14, 2024, is as follows.

  The scorecard for becoming an English person on Sunday, July 14, 2024, is as follows. My name is Shane. I am a Full Stack Engineer with over 16 years of experience in the software development industry. I have developed and maintained Java applications using Spring Boot, Mybatis, Vue, and Maven, as well as IntelliJ IDEA, my favorite IDE. I am enthusiastic about technology. I also like Chinese culture, and I would like to upload some videos on Youtube for sharing the good things with you. LinkedIn: https://www.linkedin.com/in/xingjun-chen/ Github: https://github.com/chenxingjun Youtube: https://www.youtube.com/@jinxuezhai Schedule Goals Review Personal development All: Learning: 1 hour, Practicing: 1 hour, Working: 8 hours Morning: Learning, working Afternoon: Practicing, working Everning: Practicing, reading books Others Finance Relationships Family, friends, others Scorecard Goals Remote job. July Developer I would ...

The scorecard for becoming an English person on Thursday, December 28, is as follows.

The scorecard for becoming an English person on Thursday, December 28, is as follows. 1. **Personal development**     1. **Goals**         1. I’ll take a real IELTS exam later. I want to get a band 6 score on the IELTS exam.             1. Listening test. 8:4/4-14             2. Reading test.             3. Writing test.             4. Speaking test.               5. Words dictation. 100(0)-6000         2. I would like to live in Calgary or Edmonton of Canada.             1. English first         3. As a Senior developer I need to master ****15,000+ vocabulary words.             1. 5000-15000     2. **Health**         1. Meditation +          ...