Delete file

Purpose: Deletes a file.

delete-file <file location> [ status <status var> ]

File specified with <file location> is deleted. <file location> can be given with an absolute path or relative to the current working directory (by default it's the application home directory, see directories).

If "status" is specified, the status is stored into <status var>. The status is RIM_OKAY on success or if the file did not exist, and RIM_ERR_DELETE on failure.
Examples
delete-file "/home/user/some_file" status st

See also
Files
change-mode  
close-file  
copy-file  
delete-file  
file-position  
file-storage  
file-uploading  
get-upload  
lock-file  
open-file  
read-file  
read-line  
rename-file  
stat-file  
temporary-file  
uniq-file  
unlock-file  
write-file  
See all
documentation


Copyright (c) 2019-2025 Gliim LLC. All contents on this web site is "AS IS" without warranties or guarantees of any kind.