Fixes #5823: Remove file in inputs when doing a reset