Delete a file from Box.com

I have been trying for quite a while to delete files that are uploaded to 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 account? I suppose I should be able to hand code this instead of using the Box.com plugin at all, but why does Bubble even have a Box.com plugin if it can only process uploads and not deletes? Just doesn’t make sense…

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:


https://sergiishpak.com

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

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

In 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:


https://sergiishpak.com