Deleting files

You can view and delete your files at any time using this admin dashboard by clicking on View Files in the left hand nav bar.

You can also delete files programatically using the API.

  1. In the left hand nav bar, click Manage API keys which is nested under Your Files

  2. Click on Generate New Private API Key to generate a public/private API key pair. This will generate a public token and a secret token. These keys are different from the key used to upload files for security purposes. The secret token gives full access to your account, so keep is secret!

  3. Click on "View API Documentation" to jump to the API documentation.

View API Documentation

  1. Try out the API with the sample code provided on the documentation page
wget -qO /dev/stdout \
--user "yourPublicKey" \
--password "yourSecretKey" \
https://app.simplefileupload.com/api/v1/teams

If things go well you will recieve a terminal response that shows you your team name and creation date.
It should look something like this:

Terminal Response

You can get a list of your files using the endpoint
https://app.simplefileupload.com/api/v1/images
Below is an example of how to hit this endpoint using Postman. You must authenticate your request with Basic Auth.

Sample API Images Response

In order to delete a file, you will need to send the cdn_url as the url parameter. An example delete request is shown below:
How to send a delete request

A delete request will immediately delete the file.