fetch_api cleanup