introducing delete API function

introdution of delete function