Looking through peoples comments its basically because files created have a default property of READ ONLY thus they aren’t deleted.
If you unset this as part of the create or delete process then problem fixed.
Ideally would need to be done by the developer in order to maintain the changes.
Regards
Simon