Deleting folders older than 1 month

I have a workflow that I need to delete the folder older than a month. How to do with PS.

  1. Using Get File names step you can extract the Last modified date for a specific folder.
  2. If that date is older than 1 month then,
  3. Pass the folder name to your process.
  4. Finally, use Delete folders step to delete a particular folder.