Animation not be found

Hi all,
i’m a new entry with animation.
But i create new animation called “destroybox”.
I need to call this animation when click on the object box.
But not work and return this error:

The animation state destroybox could not be played because it couldn’t be found!
Please attach an animation clip with the name ‘destroybox’ or call this function only for existing animations.

this is my animation

42338-cattura11031825.jpg

and this is the animation attached at box object
42339-cattura11031824.jpg

and this is my code:

if (hit.collider.gameObject.tag == "Box")
                {
                    hit.collider.gameObject.animation.Play("destroybox");
                    
                    //Destroy(GameObject.Find(hit.collider.gameObject.name));
                    //BoxCount -= 1;
                }

I solved the problem.

Select animation → right click on inspector tab and select Debug → set animation type to 1.