The delete() method of the Map object removes the specified element from the map by key.

    
    const officers = new Map([
        ['president', 'Jeff'],
        ['secretary', 'Adam'],
        ['treasurer', 'Anne']
    ]);

    console.log(officers.delete('president'));
    // true  // successful deletion

    console.log(officers.has('president'));
    // false