Once you have uploaded files, you may remove them by clicking the red X as long as you haven’t submitted the file(s).
If you remove a file after it has been submitted, it will only remove your view of the assignment, the assignment will still be submitted to your instructor. You will still see what files you have officially submitted under Files Submitted.