Killing prey

I want to make the hare disappear when it collides with the player, but the function does not work. how can I fix it?

function killing() {

        
     this.physics.add.collider(player, hare);
     hare.destory();
    

    }      

killing();
function create() {
  this.physics.add.collider(player, hare, function () {
    hare.destroy();
  });
}