Delete a file in Go (Golang) Posted on February 23, 2020February 23, 2020 by admin os.Remove() function can be used to delete a file in Golang. Below is the signature of this function Code: Output: