Also "because I can delete it manually". What is that? You can use WinSCP by not using the script and delete it or you can go onto the server device and delete it? Big difference.
If you're deleting it from WinSCP or similar then its a script issue. If you're deleting it from the server device then its a script or some related issue on the server side. Most likely. If you can delete it then it shouldn't be a file lock.
If you're deleting it from WinSCP or similar then its a script issue. If you're deleting it from the server device then its a script or some related issue on the server side. Most likely. If you can delete it then it shouldn't be a file lock.