Removing the last ids