Skip to content

Instantly share code, notes, and snippets.

@rdegges
Created September 19, 2016 18:27
Show Gist options
  • Save rdegges/33178a84cf904cd33fccef08dd6ef813 to your computer and use it in GitHub Desktop.
Save rdegges/33178a84cf904cd33fccef08dd6ef813 to your computer and use it in GitHub Desktop.
express-stormpath-s3 delete file example
app.get('/delete', stormpath.loginRequired, (req, res, next) => {
req.user.deleteFile('some-file.txt', err => {
if (err) return next(err);
res.send('file deleted!');
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment