Storage_DeleteMutableFile Function

Header: #include <applibs/storage.h>

Deletes the mutable storage file for the application. All file descriptors for the mutable storage file must be closed before this function is called; otherwise, the behavior of this application is undefined.

int Storage_DeleteMutableFile(void);

Errors

Returns -1 if an error is encountered and sets errno to the error value.

  • EACCES: The application does not have the required application manifest capability (MutableStorage).

  • EIO: An error occurred while trying to delete the data.

  • ENOENT: There was no existing mutable storage file to delete.

Any other errno may also be specified; such errors aren't deterministic and the same behavior might not be retained through system updates.

Return value

Returns 0 for success, or -1 for failure, in which case errno is set to the error value.

Application manifest requirements

The application manifest must include the MutableStorage capability.

Concepts and samples