Created
June 22, 2012 19:21
-
-
Save blakmatrix/2974610 to your computer and use it in GitHub Desktop.
This file contains 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
var client = github.client({ | |
username: username, | |
password: password | |
}); | |
var endpoint = '/repos/' + username + '/' + repo; | |
client.del(endpoint, function (err, status, body) { | |
if (err) { | |
return cb(err); | |
} | |
if (status === 204) { //Status: 204 No Content | |
app.log.info('Succesfully deleted ' + endpoint.blue); | |
return cb(null, 'OK'); | |
} | |
}); |
pksunkara
commented
Jun 22, 2012
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment