vl-file-delete

(vl-file-delete filename)

The vl-file-delete function erases the specified file.

Arguments

filename specifies the name of the file to be deleted as string.

Return Value

The function returns T, if the deletion was successful; otherwise it returns nil.

Examples

: (vl-file-delete "obsolete.lsp")

nil

: (vl-file-delete "c:\\obsolete.lsp")

T