Enable / disable JIRA plugin settings

Hello everyone,

I am trying to develop a forge app as internal Jira plugin and I received a request that the Admin should be able to Enable / Disable the plugin for different projects from the Jira instance.
I was not able to find a solution for this problem, do you guys have any idea?
Thanks!