@Vivek Thanks for reaching out.
It looks like you are looking for a way to automatically delete your Azure EP3 App Service Plan if the function is idle for a certain amount of time. While there is no built-in feature in Azure to automatically delete an App Service Plan after a certain period of inactivity, you need to create your own logic to automate it such as consumption Azure Functions to achieve this or the orchestration triggers that you are using.
One way is to use the consumption azure function then uses timer-triggered that checks the last time the App Service Plan was used. If the App Service Plan has been idle for a certain amount of time, the function can then delete the App Service Plan. You can automate this using the Azure management REST API or nuget package.
Note: Only empty app service plans can be deleted