The function fdelete removes a file or folder from EFS or FAT file system. The parameter filename is a character pointer specifying the file or folder to be deleted. The function is included in the RL-FlashFS library. The prototype is defined in the file rtl.h. The argument filename can contain: - A file name.
- A drive prefix. If the drive prefix is omitted, the Default System drive specified in the file File_Config.c is used.
- A file path. Use the escape character "\" when specifying a path. To delete a folder, terminate the parameter with a backslash.
- A combination of the above.
The following drive prefixes are allowed:
| Drive Prefix | Storage Medium |
|---|
| "F:" or "F0:" | Flash drive | | "S:" or "S0:" | SPI Flash drive | | "R:" or "R0:" | RAM drive | | "M:" or "M0:" | Memory Card drive 0 | | "M1:" | Memory Card drive 1 | | "U:" or "U0:" | USB Flash drive 0 | | "U1:" | USB Flash drive 1 | | "N:" or "N0:" | NAND Flash drive |
|