title: Delete object from array in c++
body: <p>Fruits class:</p>
  
  <pre><code>#include &lt;string&gt;
  using namespace std;
  
  class Fruits {
      string color;
  public:
      Fruits() {
          color = "r";
      }
  };
  </code></pre>
  
  <p>Main:</p>
  
  <pre><code>#include "Fruits.cpp"
  
  void main() {
      Fruits* fruits[6];
      fruits[0] = new Fruits();
  //  delete[] fruits[0];  // &lt;-- does not work (deletes one object)
  //  delete[] fruits; //     &lt;-- does not work (deletes all objects in the array)
  }
  </code></pre>
  
  <p>How can I do this?</p>