Delete File in Go

Posted by yhuang
Public (Editable by Users)
Go
Edit
package main

import (
	"os"
)

func main() {
	err := os.Remove("./some/file.txt")
	if err != nil {
		panic(err)
	}
}