[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Manage custom plugins\n\n*This page\napplies to **Apigee** and **Apigee hybrid**.*\n\n\nThis page describes how to delete, get, and list custom plugins in API hub. For information about creating a custom plugin, see [Create custom plugins](/apigee/docs/apihub/create-custom-plugins).\n\nBefore you begin\n----------------\n\n- Grant the following [IAM permissions](/iam/docs/understanding-roles) to your principal account:\n - `apihub.plugins.create`\n - `apihub.plugins.delete`\n - `apihub.plugins.get`\n - `apihub.plugins.list`\n\n\n For information on granting roles to principals, see [Granting, changing, and revoking access](/iam/docs/granting-changing-revoking-access).\n- Ensure that you have deleted all the plugin instances associated with the plugin that you want to delete. See [Delete a plugin instance](/apigee/docs/apihub/manage-plugin-instances#delete-plugin-instance).\n\nDelete a custom plugin\n----------------------\n\n| **Warning:** Deleting a plugin also deletes all the associated data from API hub.\n\n### Console\n\n\nTo delete a custom plugin, do the following:\n\n1. In the Google Cloud console, go to the **API hub** page.\n\n [Go to API hub](https://console.cloud.google.com/apigee/api-hub)\n2. Click settings **Settings** from the left navigation menu to open the **Settings** page.\n3. Click the **Plugins** tab to view the available custom plugin cards in your project.\n4. For the plugin that you want to delete, click delete (Delete plugin).\n5. In the confirmation dialog, click **Delete** to confirm the deletion of the plugin.\n\n### REST API\n\n\nTo delete a custom plugin, do the following:\n\nSend a `DELETE` request to the `plugins` resource: \n\n```\ncurl -X DELETE -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \nhttps://apihub.googleapis.com/v1/projects/PROJECT_ID/locations/HUB_LOCATION/plugins/PLUGIN_ID\n```\n\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: The name of your API hub host project. The host project was selected when API hub was provisioned.\n- \u003cvar translate=\"no\"\u003eHUB_LOCATION\u003c/var\u003e: The location of the API hub.\n- \u003cvar translate=\"no\"\u003ePLUGIN_ID\u003c/var\u003e: The ID of the plugin.\n\nGet a custom plugin\n-------------------\n\n### REST API\n\n\nYou can use the plugin ID to get a specific custom plugin. To get a custom plugin, send a `GET` request to the `plugins` resource: \n\n```\ncurl -X GET -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \nhttps://apihub.googleapis.com/v1/projects/PROJECT_ID/locations/HUB_LOCATION/plugins/PLUGIN_ID\n```\n\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: The name of your API hub host project. The host project was selected when API hub was provisioned.\n- \u003cvar translate=\"no\"\u003eHUB_LOCATION\u003c/var\u003e: The location of the API hub.\n- \u003cvar translate=\"no\"\u003ePLUGIN_ID\u003c/var\u003e: The ID of the plugin.\n\nList custom plugins\n-------------------\n\n### REST API\n\n\nTo list all the custom plugins in your project, do the following:\n\nSend a `GET` request to the `plugins` resource: \n\n```\ncurl -X GET -H \"Authorization: Bearer $(gcloud auth print-access-token)\" \nhttps://apihub.googleapis.com/v1/projects/PROJECT_ID/locations/HUB_LOCATION/plugins\n```\n\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: The name of your API hub host project. The host project was selected when API hub was provisioned.\n- \u003cvar translate=\"no\"\u003eHUB_LOCATION\u003c/var\u003e: The location of the API hub.\n\n\u003cbr /\u003e\n\nWhat's next\n-----------\n\n- Learn how to [Create custom plugins](/apigee/docs/apihub/create-custom-plugins).\n- Learn more about [Plugins overview](/apigee/docs/apihub/plugins)."]]