例如删除2个月之前的数据 _last_data=`date -d '-2 months' +%Y.%m` curl -XDELETE 'http://ip:端口/*-'${_last_data}'-*'