How to empty after the job is done