Update added delete function