title: Remove one object from Parse.com Array column
body: <p>I am trying to remove one object for an array stored in parse (e.g [user1],[user2],[user3], I was to change to [user1],[user3]). I have a module class which stores the different students on the module, when the user removes the module I want to remove their userID from the array stored in the students parse array.</p>
  
  <p>If that is not possible, how can I retrieve the whole array into a local arraylist, edit it, then put it back?</p>
  
  <p>I have attempted a few things but none has worked so far. this is my current code which deletes the whole row and not just the array:</p>
  
  <pre><code>moduleDeleteButton.setOnClickListener(new View.OnClickListener() {
              @Override
              public void onClick(View v) {
                  final View temp = v;
                  ParseQuery&lt;ParseObject&gt; query = new ParseQuery&lt;ParseObject&gt;("Module");
                  query.whereEqualTo("moduleCode", getItem(position).getModuleCode());
                  query.findInBackground(new FindCallback&lt;ParseObject&gt;() {
                      public void done(List&lt;ParseObject&gt; module, ParseException e) {
                          if (e == null) {
                              for (ParseObject delete : module) {
                                  delete.remove(currentUser.getObjectId());
                                  delete.deleteInBackground();
                              }
                              Toast.makeText(temp.getContext(), "Deleted", Toast.LENGTH_LONG).show();
                          } else {
                              Log.e("Error", e.getMessage());
                              Toast.makeText(temp.getContext(), "Error deleting", Toast.LENGTH_LONG).show();
                          }
                      }
                  });
  
              }
          });
  </code></pre>
  
  <p>Thanks for any help!</p>