delete

     const titi = "TITI";

    const body = {"toto":"TOTO",titi,"_id":"23"}
    delete body._id;
    const thing = {...body};
   
    console.log(thing)

PS C:\Users\denis.dupont\OneDrive - Universite Evry Val d'Essonne\Bureau\testgenerateur> node .\test.js { toto: 'TOTO', titi: 'TITI' }