Cucumber will clean up files you've uploaded in your Cucumber features automatically with the attached code. Put the file in features/support/.
features/support/