This is a very welcome feature that saved my day at various occasions, you can turn your iPhone into a wireless hotspot and share its mobile data connection.
If any file can not be deleted, then you can use the program LockHunter, which removes the active connections of other applications to that file, which allow you to change or delete file.