#include <include/modem/modem_key_mgmt.h>
Delete a credential from persistent storage.
- Note
- If used when the LTE link is active, the function will return an error and the key will not be written.
- Parameters
-
| [in] | sec_tag | The security tag of the credential. |
| [in] | cred_type | The credential type. |
- Return values
-
| 0 | On success. |
| -ENOBUFS | Internal buffer is too small. |
| -ENOENT | No credential associated with the given sec_tag and cred_type. |
| -EACCES | Access to credential not allowed. |
| -EPERM | Not permitted when the LTE link is active. |
| -ECANCELED | Canceled because voltage is low (power off warning). |