If you have rooted your phone and don't mind installing Xposed (won't pass safetynet), then you can use an Xposed module called XInternalSD, this gives full write access to all apps. I too had this issue, but then when I installed XInternalSD, the Moto Gallery was able to delete images from...