How to delete all photos in Trails

I found photos occupy too much storage on my phone.

The fact that Trails does not support excluding the photos from backups is also a problem.

Is there any way to delete all photos in Trails?

Thanks.