Avisaro Online Documentation - Wiki
Impressum Kontakt Sitemap

DEL

Description

With the DEL command, existing files can be removed. DEL requires a single argument which must be the full path to the file. A path, in this terms, is a composition of folder names and the file name separated by slashes. To delete a file in the root directory, only the file name is required. The file must not be open for DEL to succeed.

Return Values

ERR_OK (0) if the file was deleted successfully.
ERR_FILE_OPEN (32) if an attempt was made to delete an open file.
ERR_FR_XX (13...25) file system error if something's gone wrong while trying to delete the file.

Example

DEL test.txt 

Removes the file "test.txt" that is located in the root folder

DEL foo/bar/test2.txt 

Removes the file "test2.txt" that resides in the folder "bar" which is a sub folder of "foo"

Remarks

DEL is only useful on modules with mass storage enabled (SD cards or USB sticks). DEL only works on files that are currently not in use.