clean up work files for search and retrieve