Mono.Unix.Native.Stdlib.remove Method
Remove a directory entry.

Syntax

public static int remove (string filename)

Parameters

filename
Documentation for this section has not yet been entered.

Returns

The remove() function returns the value 0 if successful; otherwise the value -1 is returned and Stdlib.GetLastError indicates the error.

Remarks

The remove() function removes the file or directory specified by path.

If path specifies a directory, remove(path) is the equivalent of Syscall.rmdir(path). Otherwise, it is the equivalent of Syscall.unlink(path).

Requirements

Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0