Where is the problem with the script, i want my player to die when his health is <1

Assets\Health.cs(43,21): error CS0119: ‘GameObject’ is a type, which is not valid in the given context

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class Health : MonoBehaviour
{
public int health;
public int numOfHearts;

public Image[] hearts;
public Sprite fullHeart;
public Sprite emptyHeart;

void Update(){

    if (health > numOfHearts)
    {
        health = numOfHearts;
    }
    for (int i = 0; i < hearts.Length; i++)
    {
        if (i < health)
        {
            hearts*.sprite = fullHeart;*

}
else
{
hearts*.sprite = emptyHeart;*
}
if (i < numOfHearts)
{
hearts*.enabled = true;*
}
else
{
hearts*.enabled = false;*
}
}
if (health < 1)
{
Destroy(GameObject);
}
}
}

Change your destroy line to Destroy(gameObject); (Lower case g)

Assuming your health is being decremented elsewhere in your script, once it drops below 1 the gameobject this script is attached to should be destroyed.

Using the uppercase G like you have, it is passing an object type to destroy, instead of the actual gameobject the script is attached to.

Hope this helps,
-Larry