Removing old elements before archiving new one