STATE_object_delete
Note that after doing delete you cant use the handle any more so good practice is to do the following: STATE_object_delete(obj_handle); obj_handle=NULL;