PR_Delete

Syntax

#include <prio.h>

PRStatus PR_Delete(const char *name);

Parameters

The function has the following parameter:

name

The pathname of the file to be deleted.

Returns

One of the following values:

  • If file is deleted successfully, PR_SUCCESS.

  • If the file is not deleted, PR_FAILURE.

Description

PR_DELETE deletes a file with the specified pathname name. If the function fails, the error code can then be retrieved via PR_GetError.