Should removeFile remove the successfully uploaded file from the DOM?

The docs suggest that I set showRemoveButtonAfterComplete: true and then use removeFile(file.id) 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') {
  uppy.removeFile(file.id)
 }
})

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