How i delete amiibo data?

I just download a amiibo of Mario (SM) and i want to use it but the game says me ‘‘This amiibo have data of another game’’
How i delete data?

Game: Mario & Luigi: Paper Jam Bros.

Currently writing and delete data from Amiibos is not possible. You need to do this on your New 2DS or New 3DS (XL) or on your Switch.

https://en-americas-support.nintendo.com/app/answers/detail/a_id/14232/~/how-to-erase-amiibo-game-data

https://en-americas-support.nintendo.com/app/answers/detail/a_id/22344/~/how-to-reset-amiibo-data