# Delete a file from Box.com

**URL:** <https://forum.bubble.io/t/delete-a-file-from-box-com/237712>\
**Category:** Plugins\
**Created:** [December 19, 2022, 6:08pm UTC](https://forum.bubble.io/t/delete-a-file-from-box-com/237712 "2022-12-19T18:08:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yourmom](https://avatars.discourse-cdn.com/v4/letter/y/df705f/32.png) [@yourmom](https://forum.bubble.io/u/yourmom)\
**Post date:** [December 19, 2022, 6:08pm UTC](https://forum.bubble.io/t/delete-a-file-from-box-com/237712/1 "2022-12-19T18:08:55Z")

</div>

I have been trying for quite a while to delete files that are uploaded to [Box.com](http://Box.com) using the native plugin… I can upload files and get a files’ file\_id and URL from Box, but actually deleting it is proving to be impossible.

I have tried using the “Delete and uploaded file” workflow step, passing in the file URL, but I’m afraid the “Delete an uploaded file” step only works with the native AWS uploaded files…

Is there any way to delete files stored in a [Box.com](http://Box.com) account? I suppose I should be able to hand code this instead of using the [Box.com](http://Box.com) plugin at all, but why does Bubble even have a [Box.com](http://Box.com) plugin if it can only process uploads and not deletes? Just doesn’t make sense…

---

<div class="post-metadata">

**Author:** ![shpak.serhiy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/shpak.serhiy/32/122411_2.png) [@shpak.serhiy](https://forum.bubble.io/u/shpak.serhiy)\
**Post date:** [December 19, 2022, 10:05pm UTC](https://forum.bubble.io/t/delete-a-file-from-box-com/237712/2 "2022-12-19T22:05:31Z")

</div>

The Box plugin is a bit simplistic. It is better to setup own API call via the API Connector.

Here is how the delete file api call looks like:

 ![CleanShot 2022-12-19 at 22.32.40](https://us1.discourse-cdn.com/bubble/original/3X/9/c/9c31eee2d3e7d5772b376ca31a8b39ac7f40b408.png)

* * *

[https://sergiishpak.com](https://sergiishpak.com)

---

<div class="post-metadata">

**Author:** ![yourmom](https://avatars.discourse-cdn.com/v4/letter/y/df705f/32.png) [@yourmom](https://forum.bubble.io/u/yourmom)\
**Post date:** [December 27, 2022, 5:35pm UTC](https://forum.bubble.io/t/delete-a-file-from-box-com/237712/3 "2022-12-27T17:35:18Z")

</div>

Yea the hard part is figuring out what that Authorization value should be

---

<div class="post-metadata">

**Author:** ![shpak.serhiy](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/shpak.serhiy/32/122411_2.png) [@shpak.serhiy](https://forum.bubble.io/u/shpak.serhiy)\
**Post date:** [December 28, 2022, 1:32pm UTC](https://forum.bubble.io/t/delete-a-file-from-box-com/237712/4 "2022-12-28T13:32:26Z")

</div>

Authorization usually the most complex in APIs. Once you setup the authorization flow - the API calls are easy.

In [Box.com](http://Box.com) authorization is done with Access Token that is indicated in the header Authorization: Bearer [access token].

Access token is valid for 1hr. To get Access token you need a Secret token (client\_secret) and you need to setup a separate API call like this:

 ![CleanShot 2022-12-28 at 14.23.50](https://us1.discourse-cdn.com/bubble/original/3X/f/a/fa2c7c1c77b1f314abcac0239359477118da25e7.png)

* * *

[https://sergiishpak.com](https://sergiishpak.com)
