client/lxd_containers.go
func (r *ProtocolLXD) DeleteContainerFile(containerName string, path string) error {
	if !r.HasExtension("file_delete") {
		return fmt.Errorf("The server is missing the required \"file_delete\" API extension")
	}

	// Send the request
	_, _, err := r.query("DELETE", fmt.Sprintf("/containers/%s/files?path=%s", url.QueryEscape(containerName), url.QueryEscape(path)), nil, "")
	if err != nil {
		return err
	}

	return nil
}
func (r *ProtocolLXD) DeleteContainerFile(containerName string, path string) error {
	if !r.HasExtension("file_delete") {
		return fmt.Errorf("The server is missing the required \"file_delete\" API extension")
	}

	// Send the request
	_, _, err := r.query("DELETE", fmt.Sprintf("/containers/%s/files?path=%s", url.QueryEscape(containerName), url.QueryEscape(path)), nil, "")
	if err != nil {
		return err
	}

	return nil
}
func ( r * ProtocolLXD ) DeleteContainerFile ( containerName string , path string ) error { if ! r . HasExtension ( " " ) { return fmt . Errorf ( " \" \" " ) } // Send the request _ , _ , err := r . query ( " " , fmt . Sprintf ( " " , url . QueryEscape ( containerName ) , url . QueryEscape ( path ) ) , nil , " " ) if err != nil { return err } return nil }
// DeleteContainerFile deletes a file in the container
DeleteContainerFile deletes a file in the container