Destroy trigger so animation only plays once.

I have an animation that is triggered when I walk through a collider. But I’m wanting the collider to be destroyed after walking through it so the animation only plays once. As at the moment, it plays every time I walk through it. I have this script, but it doesn’t seem to be working. Can anyone help me please?

function OnTriggerEnter(thing: Collider){
  if (thing.tag == "Basement_trigger"){

Destroy(thing); - this will destroy Collider component only.