exposing api to clean up file directly