title: Delete object from user class in Parse.com
body: <p>I'm trying to delete the image connected to the current user from the <code>imageOne</code> column in Parse.com. From the user class.</p>
  
  <pre><code>PFQuery *query = [PFUser query];
  [query selectKeys:@[@"imageOne"]];
  [query getObjectInBackgroundWithId:[[PFUser currentUser] objectId] block:^(PFObject *object, NSError *error) {
      if (!error) {
          [object deleteInBackground];
      }
  }];
  </code></pre>
  
  <p>My code doesn't work and the console logs this error <code>"User cannot be deleted unless they have been authenticated via logIn or signUp"</code>.</p>
  
  <p>How can I fix this?</p>
  
  <p>Seems like the problem comes from the fact that object (image) comes from the user class, am I right?</p>