deleteLogic