How can I remove a Filestack file I no longer need?

Filestack has a Javascript method and a REST method for removing files. Both of these functions will delete the Filestack link, Filestack's record of the metadata for the file, and the file itself if it was stored to S3 or another custom storage option.

Here is an example that uses the Javascript API:

    
var blob = {url: 'https://www.filestackapi.com/api/file/vs6qqpoRQyu438c07LEA'};
filepicker.remove(blob, function(){
      console.log("Removed");
 });
        

Or using REST:

  
>>> curl -X DELETE https://www.filestackapi.com/api/file/**HANDLE**?key=APIKEY
        

You can read more about these two methods here: Javascript API Remove and REST API Remove.