As a general request, please don't post screen images. They are very hard to read, especially for (but not exclusively for) those with visual impairment. They also can't be copy-pasted.
You haven't said what platform you are running on. However if this is Linux or another POSIX-compatible system, it's perfectly fine to delete a file while it's open. The file remains on disk until the last process which has an open file handle has closed it. You can demonstrate this quite easily: - create a large (multi-gigabyte) file - check the filesystem free space - open the file - delete it - check the filesystem free space - close it - check the filesystem free space Only after closing the file will the free space be returned to the filesystem. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/db180a5a-71f3-4328-a50b-cea0f85bd174n%40googlegroups.com.