This is not possible on iOS 15, but you can delete all photos from the iPhone or iPad by going to Settings > Photos & Camera and deleting them.