Should removeFile remove the successfully uploaded file from the DOM?

The docs suggest that I set showRemoveButtonAfterComplete: true and then use removeFile( to remove the file, but I am not able to do what I think seems intuitive (which is remove the file from the uppyResult input in the DOM) with the code that is provided.

.on('file-removed', (file, reason) => {
 if (reason === 'removed-by-user') {

With this code, nothing happens when I click the X next to the uploaded image. Am I doing this wrong?