added functionality for single entity deletion