Delete options-variant from product from REST API

Hi,

in the shop i manage all the products has a variant with 3 options.
I’m trying to delete the variant from api but it still remain.
I use this endpoint
DEL /admin/api/2023-10/products/**********/variants/********.json
The response don’t give error but the variant on the product still remain.
Can you help to understand how to delete the variant and the option from a product via API?
Thanks

Solved,
i was using DEL instead of DELETE.

DEL /admin/api/2023-10/products/**********/variants/********.json

Hi Giulio3,

Glad you figured this out and thanks for coming back to post your solution!