title: How do I delete individual renderables from the scene using a button using arcore?
body: <p>I'm trying to make a button that will delete a 3d model from the scene after it is selected.</p>
  <pre><code>btnRemove.setOnClickListener(new View.OnClickListener() {
          @Override
          public void onClick(View v) {
  
  
              deleteModel ();
  
          }
      });
  
  }
  
  private void deleteModel(AnchorNode nodeToremove, int selected) {
  
      //Remove an anchor node
      if (nodeToremove != null) {
          arFragment.getArSceneView().getScene().removeChild(nodeToremove);
          nodeToremove.getAnchor().detach();
          nodeToremove.setParent(null);
          nodeToremove = null;
          Toast.makeText(MainActivity.this, &quot;Test Delete - anchorNode removed&quot;, Toast.LENGTH_SHORT).show();
      } else {
          Toast.makeText(MainActivity.this, &quot;Test Delete - markAnchorNode was null&quot;, Toast.LENGTH_SHORT).show();
      }
  }
  </code></pre>
  <p>pop Up error: <code>error: method deleteModel in class MainActivity cannot be applied to given types; required: AnchorNode,int found: no arguments reason: actual and formal argument lists differ in length </code></p>