You can copy files from the gallery into your application's file system sandbox, where you can do anything you want with them. However, your application can't modify files outside the sandbox. This includes files in the gallery.
As this answer says, there doesn't appear to be a method defined for deleting photos there.