Rank and delete with sizes