how to destroy a gameobject in csharp

Code Example - how to destroy a gameobject in csharp

                
                        Destroy(gameObject); // destroys the game object attached to the script
                    
                
 

destroy gameobject unity

                        
                                Destroy(this.gameObject);
                            
                        
 

how to destroy an object in unity

                        
                                Destroy(gameObject);