functions – Auto delete content in specific folder inside media library

I am looking for solution to auto delete images (jpg, gif, png -content in general) inside a specific folder (folderx) INSIDE the uploads/months folders (customization intended for future folderx –older folderx have already been deleted manually). These images inside folderx have no relation to any posts. they can be deleted in x days. or x hours.

  • Uploads

    • O7 (month)
      • folderx (images inside folderx to be deleted)
    • O8 (month)
      • folderx (images inside folderx to be deleted)

    etc.etc