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 Saturday, June 1, 2024, is as follows.

  The scorecard for becoming an English person on Saturday, June 1, 2024, is as follows. I’m Shane. I felt hopeless in my life during Covid-19, I want to change my life. Now, English learning is my new hope. I left from my company in March. I want to focus on English learning. Personal development Goals I would like to study in Edmonton city of Canada. 2024 Study visa. May IRCC refused my application. I would like to argue with my application. Health Meditation 3 minutes Exercise 0.5 hour Gratitude 2 minutes Sleep 8 hours Study Self-study English+ Vocabulary 0 words Grammar 0 hours Comprehensive Listening 0 hours Speaking 0 hour Reading 0.1 hour Beautiful English page 5-241 0 minutes The New Testament page 101-1047 0 minutes Bookworm 0 hour Others 10 minutes Writing 0 minutes Watching 0 hour Dao Reading 10 minutes Finance = Check and pay the bills. 2 minutes Entertainment Play Xiao Flute ...

The scorecard for becoming an English person on Tuesday, November 28, is as follows.

  The scorecard for becoming an English person on Tuesday, November 28, is as follows. Personal development Goals I’ll take a real IELTS exam on 24th of December. I want to get a band 6 score on the IELTS exam. I would like to live in Calgary City. Health Meditation + Sit in meditation 2 minutes morning anywhere The New Testament Matthew 21:6 2 minutes page 86-1047 morning anywhere Exercise + Stick 0 minutes morning Park or Home Jog 0 minutes morning Park Martial arts 40 minutes morning Park Gratitude + Friends 2 minutes anytime anywhere The English Club Group 2 minutes anytime anywhere Sleep + 11:40 AM-6:50 AM night home Study Self-study English+ Grammar “Duolingo”, 3.5.11.8(1)-6 anytime anywhere “Busuu”, A2:6.7.4(1)/14 -C1 anytime anywhere Vocabulary(33 words) “Bubeidanchi”, 1235(23)-4035 anytime anywhere “Wanchiwang”, 540(5)-2406 anytime anywhere “Baicizhan”, 174(5)-3272 anytime anywhere ...

The scorecard for becoming an English person on Thursday, March 13, 2024, is as follows.

  The scorecard for becoming an English person on Thursday, March 13, 2024, is as follows. Personal development Goals Graduate from ILAC on time. Attend class 8:30 PM -11:30 PM 3 hours Do the homework. 0.5 hour Obtain an offer from a college. Applying SAIT. Applying NAIT. I received a conditional offer from NAIT. I would like to study in Edmonton city of Canada. Visit visa. Study visa. As a Senior developer I need to master ****15,000+ vocabulary words. Reading 9568 Listening 5881 Health Meditation + Sit in meditation 1 minutes morning anywhere The New Testament Matthew 23:34-28 2 minutes page 101-1047 anytime Home Exercise + Martial arts 2 minutes anytime anywhere Sword 2 minutes morning Park or Home Stick 2 minutes morning Park or Home Jog 0 minutes morning weekends Park Gratitude + Friends 2 minutes anytime anywhere Some English groups 2 minutes anytime anywhere Sleep + Worki...