Implementing purge action.