Hello @Roberto Atzori
Welcome to Microsoft Q&A Platform,
For the moment the only option is to delete and recreate the gateway, you could automate this operation via ARM templates or Terraform (taking in count the time will take to create the resource).
You can share your feedback with the Product Team to add this feature in via Azure Feedback Portal: https://feedback.azure.com/d365community/forum/8ae9bf04-8326-ec11-b6e6-000d3a4f0789
Best regards,
----------
Please don’t forget to "Accept the answer" and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.