# How do you cancel a single upload?

**URL:** <https://community.transloadit.com/t/how-do-you-cancel-a-single-upload/15246>\
**Category:** Uppy\
**Created:** [March 31, 2020, 6:54pm UTC](https://community.transloadit.com/t/how-do-you-cancel-a-single-upload/15246 "2020-03-31T18:54:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![robbymarston](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@robbymarston](https://community.transloadit.com/u/robbymarston)\
**Post date:** [March 31, 2020, 6:54pm UTC](https://community.transloadit.com/t/how-do-you-cancel-a-single-upload/15246/1 "2020-03-31T18:54:32Z")

</div>

I see the `cancelAll` method in the documentation, but I’m not sure how to go about cancelling a specific upload. Seems like a common use-case, so I’m not sure what I’m missing. Any help is appreciated, thank you!

---

<div class="post-metadata">

**Author:** ![robbymarston](https://avatars.discourse-cdn.com/v4/letter/r/e9a140/32.png) [@robbymarston](https://community.transloadit.com/u/robbymarston)\
**Post date:** [March 31, 2020, 8:28pm UTC](https://community.transloadit.com/t/how-do-you-cancel-a-single-upload/15246/2 "2020-03-31T20:28:11Z")

</div>

Nevermind, turns out `removeFile` was what I was after.

---

<div class="post-metadata">

**Author:** ![ophelas](https://avatars.discourse-cdn.com/v4/letter/o/ad7895/32.png) [@ophelas](https://community.transloadit.com/u/ophelas)\
**Post date:** [August 22, 2021, 1:21am UTC](https://community.transloadit.com/t/how-do-you-cancel-a-single-upload/15246/3 "2021-08-22T01:21:36Z")

</div>

how did you implement that? docs seem to suggest that i set `showRemoveButtonAfterComplete: true` and do something like

```auto
.on('file-removed', (file, reason) => {
 if (reason === 'removed-by-user') {
  uppy.removeFile(file)
 }
})

```

but that doesn’t work at all.

i just want the file to be removed from the successful uploads field in the DOM, and it seems like that should work automatically? am i mistaken?
