API delete function
docs restructured