implement comparing as well as deleting

Signed-off-by: Amit Gupta <agupta@pivotallabs.com>