This should actually be:

```javascript
if ( !data.error )
```

See the delete specs here: https://github.com/mozilla/login.webmaker.org/wiki/LoginAPI-&-User-Model