@Amir Bakhtiari
Thanks for the question and for using Microsoft Q&A platform.
As per my understanding, you are looking for information on how to reuse the same name for an Azure Database for MySQL server after it has been deleted.
To reuse the same name for an Azure Database for MySQL server after it has been deleted, you need to wait for a certain period. Azure retains the server's name for a few days to prevent accidental reuse. During this time, only the original subscription can recreate the server with the same name.
Unfortunately, there is no option to bypass this retention period and permanently delete the server's name immediately.
Currently, Azure does not provide an immediate permanent deletion option for MySQL servers to instantly free up the name. The deletion process is managed internally, and the name is retained temporarily to prevent accidental re-creation.
If you need a new MySQL server immediately, consider using a different name and updating your application configuration accordingly. You can periodically check if the original name becomes available by attempting to create a new server with that name.
Hope this helps. Please let us know if you have any further questions.