Also you need to have proper error handler
```
.fail(function(err) { ErrorHandler.showError(err, "Branch delete failed"); })
```