Page 1 of 1

want to delete datasets using orchadmin

Posted: Wed Jun 25, 2014 2:08 pm
by abbhi
want to delete datasets over 3 months using orchadmin

what would be the command ?

Posted: Wed Jun 25, 2014 2:14 pm
by chulett
Basically it is "orchadmin delete" but I'm guessing this is more about the three months part. If you mean three months since it was created or modified, you can use find for that and then send them to orchadmin one by one.

Posted: Wed Jun 25, 2014 4:10 pm
by ray.wurlod
Or even use the -exec option in find to execute the orchadmin rm {} command.

Posted: Wed Jun 25, 2014 6:55 pm
by chulett
Exactly. That or xargs are the two options of choice with find.