04-06-2017, 05:16 PM
While I'm not sure how well it will work on a network drive, you could use the stdlib "remove()" function to delete the file immediately. We only provided a function to move files to the trash/recycle bin because platform code is necessary to do so, but "remove()" is part of C/C++ already.
See http://www.cplusplus.com/reference/cstdio/remove/
See http://www.cplusplus.com/reference/cstdio/remove/