Added delete func to lib