SPNPTL-78 : Changed delete to a delete function instead of update to null