Please enable JavaScript to view this site.

This function is used for deleting one or more files in a partition.

Syntax

i32 f_del (string fileName)

fileName

Full path to the directory/file you want to delete.

/fx/filename where:

x is the logical device identifier character (@, A, B, C, D, E)

filename is the name of the file with wildcards (* and ?)

Result

Returns:

Value

Description

> 0

Number of files that have been deleted

< 0

Error code (see error codes)

Validity

Task

Note

If functions regarding compact flash handling are used, it is recommended that bit 14 of the sys_cfg variable (0x00004000) be imposed to 1, to enable the use of safety routines for flash write/read

 

  

Keyboard Navigation

F7 for caret browsing
Hold ALT and press letter

This Info: ALT+q
Page Header: ALT+h
Topic Header: ALT+t
Topic Body: ALT+b
Contents: ALT+c
Search: ALT+s
Exit Menu/Up: ESC