added delete function
documentation