[DF-3081] Added deletion of last and first lodes