Created
September 19, 2016 18:27
-
-
Save rdegges/33178a84cf904cd33fccef08dd6ef813 to your computer and use it in GitHub Desktop.
express-stormpath-s3 delete file example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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