summaryrefslogtreecommitdiffstats
path: root/docs/nspr/reference/pr_delete.rst
blob: f3d55238369c163961d0381fb956804c00ceff29 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
PR_Delete
=========


Syntax
------

.. code::

   #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
-----------

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