How to delete subfolders with files older than

What is the problem you are having with rclone?

Hello,

I try to delete subfolders and its files older than 1 day.
I have the following architecture:
/home/pi/data/pictures_OK/
-Subdirectory1 (older than 1d)
---file1 (older than 1d)
---file2 (older than 1d)
-Subdirectory2 (not older than 1d)
---file3 (not older than 1d)
---file4 (not older than 1d)

What is your rclone version

rclone v1.56.0.

Which cloud storage system are you using?

Debian 10

The command you were trying to run

rclone delete /home/pi/data/pictures_OK/ --rmdirs --min-age 1d

but it's only deleting file1/file2. I want to delete Subdirectory1 too.

I tried with purge:

rclone purge /home/pi/data/pictures_OK/ --min-age 1d

but it remove the folder "pictures_OK" (not just the subfolders)

Any ideas ? Thanks

Is there a reason you didn't use the help and support template?

Hello, sorry I was too fast. I updated my topic. I red the help but can't find the way to delete what I want (files and subfolders). Thanks

Purge doesn't work with filters:

https://rclone.org/commands/rclone_purge/

Run:

rclone ls /home/pi/data/pictures_OK/ --min-age 1d -vv

Share the full output.