Title: REST API
Last modified: September 6, 2023

---

# REST API

 *  Resolved [developersuseonly](https://wordpress.org/support/users/developersuseonly/)
 * (@developersuseonly)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/rest-api-150/)
 * Hi,
 * how can delete rest API key using woocommerce rest API?
   we have a application
   where we are using rest API to connect our app to woocommerce store and sync 
   products, orders customers etc. so on authorization (/wc-auth/v1/authorize) callback
   we are creating webhooks using rest API. I want to delete/revoke created rest
   API using rest API how can I delete?please see screeshot: [https://prnt.sc/zOShIlGVXGDs](https://prnt.sc/zOShIlGVXGDs)
 * Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Support [wpnomad a11n](https://wordpress.org/support/users/wpnomad/)
 * (@wpnomad)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/rest-api-150/#post-17043260)
 * Hi [@developersuseonly](https://wordpress.org/support/users/developersuseonly/),
 * The WooCommerce Rest API doesn’t allow for CRUD operations on the API keys themselves—
   you can find details of all the supported operations here: [https://woocommerce.github.io/woocommerce-rest-api-docs/](https://woocommerce.github.io/woocommerce-rest-api-docs/)
 * What you’re trying to achieve would require custom development.
 *  Thread Starter [developersuseonly](https://wordpress.org/support/users/developersuseonly/)
 * (@developersuseonly)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/rest-api-150/#post-17068428)
 * Hi, thanks for the response.
 * Actually I want to delete API keys when store deleted from my app, because when
   every time I create store then it creates new API key, so I want to delete API
   key when I’m deleting store.
   Thanks.
 *  Plugin Support [wpnomad a11n](https://wordpress.org/support/users/wpnomad/)
 * (@wpnomad)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/rest-api-150/#post-17075706)
 * Hi [@developersuseonly](https://wordpress.org/support/users/developersuseonly/),
 * At the moment, you can delete the API keys directly form the WordPress site dashboard(
   under WP Admin > WooCommerce > Settings > Advanced). As mentioned earlier, there
   isn’t a way to delete the API key using Rest API, however, it may be possible
   to implement a custom solution via code for this. For custom solution, I recommend
   collaborating with a developer.
 *  Thread Starter [developersuseonly](https://wordpress.org/support/users/developersuseonly/)
 * (@developersuseonly)
 * [2 years, 8 months ago](https://wordpress.org/support/topic/rest-api-150/#post-17090124)
 * Hi,
   thanks, I know I can delete directly from WooCommerce settings.Can you please
   explain How can I achieve this with custom solution, I’m developer so you can
   explain me.Thanks.
 *  [con](https://wordpress.org/support/users/conschneider/)
 * (@conschneider)
 * Engineer
 * [2 years, 8 months ago](https://wordpress.org/support/topic/rest-api-150/#post-17091189)
 * Hi [@developersuseonly](https://wordpress.org/support/users/developersuseonly/),
 * WordPress allows you to add your own REST API endpoints. [https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/](https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/)
 * Basically what you can do is to either expose the CRUD functions of WooCommerce
   to an endpoint or create your own callback functions that manage what you need
   and then attach them to your custom endpoint.
 * Kind regards,

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘REST API’ is closed to new replies.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 5 replies
 * 3 participants
 * Last reply from: [con](https://wordpress.org/support/users/conschneider/)
 * Last activity: [2 years, 8 months ago](https://wordpress.org/support/topic/rest-api-150/#post-17091189)
 * Status: resolved