Deleted functions cannot be restored.
To delete a function:
In the navigation panel, go to Databases.
(Optional) To display system databases, turn on Show system databases.
Click the name of the database.
Click the name of the schema.
Select Functions.
Click
next to the function.
Click Delete.