I have a Django project which in i use file field to upload files.
What i want to do is to delete the file field's file which is linked to the object im trying to delete.
I used This document as an example: https://djangosnippets.org/snippets/10638/
when i use these functions i get the dollowing error on the server: "Error 32 - The process cannot access the file because it is being used by another process" I think that the process which uses it is the django server because i tried to delete it with a regular python script (same functions) and with batch and it worked just fine.
Anyone knows a way around this?