Is there a way to delete items from a document library based on some criteria for e.g. delete all documents whose created date is less than 1/1/2012.
I know it can be done through code but I am looking for some other way like powershell command just like we write an SQL statement such as:
DELETE FROM mylibrary WHERE created <= '1/1/2012'