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
Post a Comment