// FileDelete deletes file from file store by id
//export FileDelete
FileDelete deletes file from file store by id
export FileDelete
// FileDelete deletes file from file store by id // export FileDelete
func FileDelete(e *C.char) *C.char {
	type fileDelete struct {
		ID string `json:"id"`
	}
	es := C.GoString(e)
	var f fileDelete
	if err := json.NewDecoder(bytes.NewBufferString(es)).Decode(&f); err != nil {
		return nil
	}
	ok := fs.Remove(f.ID)
	if !ok {
		return nil
	}
	return C.CString("")
}
func FileDelete ( e * C . char ) * C . char { type fileDelete struct { ID string `json:"id"` } es := C . GoString ( e ) var f fileDelete if err := json . NewDecoder ( bytes . NewBufferString ( es ) ) . Decode ( & f ) ; err != nil { return nil } ok := fs . Remove ( f . ID ) if ! ok { return nil } return C . CString ( " " ) }
FileDelete deletes file from file store by id
export FileDelete
FileDelete deletes file from file store by id export FileDelete