Hello, @Sinha Prokash
Welcome to Microsoft Q&A!
I can't find any relevant functionality in the WFP API.
Hope this article can help you. It describes the operation of the firewall rule with Netsh and Powershell.
https://learn.microsoft.com/en-us/windows/security/threat-protection/windows-firewall/windows-firewall-with-advanced-security-administration-with-windows-powershell#delete-a-firewall-rule
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.