Ionic-native/file removeFile from www/assets NO_MODIFICATION_ALLOWED_ERR iOs

I have a .zip file inside the www/assets folder.

The zip get extracted into the file.applicationDirectory . After the extraction i want to delete the .zip file.

On app startup i check if the .zip file exists (if exists it may mean that it hasn’t been extracted yet or the app has been updated so I Have to extract the zip once again)

The zip get extracted correctly but when I try to delete the zip file I get this error (from xCode)

error removing filesystem entry at /var/containers/Bundle/Application/C3BAEF19-6689-41BF-B13F-F35B5E1D5945/ “” couldn’t be removed because you don’t have permission to access it.
2018-04-18 10:48:58.038245+0200 APP[5889:2521655] code 6
2018-04-18 10:48:58.038330+0200 APP[5889:2521655] message NO_MODIFICATION_ALLOWED_ERR

I even tried to change the permission on filesystem before building into xcode but with no luck.

any help would be greatly appreciated.