Deletes a kernel keyset.
#include <sys/kerrno.h>
#include <sys/skeys.h>
 kerrno_t kkeyset_delete (set)
kkeyset_t set;
| Item | Description | 
|---|---|
| set | Specifies the keyset to be destroyed. | 
The kkeyset_delete kernel service destroys a kernel keyset. The kernel service releases the hidden resources associated with this keyset.
The kkeyset_delete kernel service can be called from the process environment only.
| Item | Description | 
|---|---|
| 0 | Indicates a successful completion. | 
| EINVAL_KKEYSET_DELETE | Indicates that the parameter or execution environment is not valid. |