codegen: implement delete() with body overload

Change-Id: I0642d576623307ee52f75afcfdd0c7e73ce48041
Signed-off-by: Michael Pasternak <mpastern@redhat.com>