Updated delete to follow new API

Signed-off-by: Shashank Sahni <shredder12@gmail.com>