Guest User

Untitled

a guest
Nov 17th, 2018
147
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. var client = github.client({
  2. username: username,
  3. password: password
  4. });
  5. var endpoint = '/repos/' + username + '/' + repo;
  6.  
  7. client.del(endpoint, function (err, status, body) {
  8. if (err) {
  9. return cb(err);
  10. }
  11. if (status === 204) { //Status: 204 No Content
  12. app.log.info('Succesfully deleted ' + endpoint.blue);
  13. return cb(null, 'OK');
  14. }
  15. });
Add Comment
Please, Sign In to add comment