C_DestroyObject

This function operates as specified in PKCS#11.

If the object has the optional attribute CKA_DELETABLE set to FALSE the object cannot be deleted with this function and CKR_OBJECT_READ_ONLY is returned.

Synopsis

C_DestroyObject(
        CK_SESSION_HANDLE hSession,
        CK_OBJECT_HANDLE hObject
);