title: How I can remove\delete object in kotlin?
body: <p>I have class and two objects. I want to delete 1st object. How I can delete it?</p>
  
  <p>I tried just delete() (I found it on kotlinlangcom) but it doesn't work. I have red light bulb what recommend: "Create member function Person.delete", "Rename reference" and "Create extension function Person.delete".</p>
  
  <pre><code>fun main() {
      // copy object in object
      data class Person (var name: String = "Orig", var type: String = "piece",
                         var age: Int = 18, var high: Double = 25.7, var code: Int = 1522)
      {
          var info: String = "0"
          get() = "Name: $name Age: $age Type: $type High: $high Code: $code"
      }
      val ann: Person = Person("Ann", "man", 10, 0.5, 1408) // 1st object with some properties
      var bob: Person = Person("Bob", "girl", 20, 15.0, 1239) // 2nd object without prop
      println(ann.info)// props 1st object
      println(bob.info)// props 2nd object
      print(" ---- ")
      bob = ann.copy() // copy 1st in 2nd
      println("Bob has Anns' props: ")
      print("final " + bob.info) // new props 2nd object
      bob.delete()
  
  }
  </code></pre>