nRF Connect SDK API 2.8.99
Loading...
Searching...
No Matches

◆ modem_key_mgmt_clear()

int modem_key_mgmt_clear ( nrf_sec_tag_t sec_tag)

#include <include/modem/modem_key_mgmt.h>

Delete all credentials for a given sectag from persistent storage.

Note
If used when the LTE link is active, the function will return an error and the credentials will not be deleted.
Parameters
[in]sec_tagThe security tag of the credential to delete.
Return values
0On success.
-ENOBUFSInternal buffer is too small.
-EACCESAccess to credential not allowed.
-EPERMNot permitted when the LTE link is active.
-ECANCELEDCanceled because voltage is low (power off warning).