Title: Delete Issue
Last modified: June 10, 2023

---

# Delete Issue

 *  [Suryakiran](https://wordpress.org/support/users/suryakiran/)
 * (@suryakiran)
 * [2 years, 12 months ago](https://wordpress.org/support/topic/delete-issue-2/)
 * Delete action is not working once an endpoint is created.
 * An error of type E_ERROR was caused in line 96 of the file [/public_html/wp-content/plugins/custom-wp-rest-api/includes/functions.php](http://academy.growthsupermarket.com/public_html/wp-content/plugins/custom-wp-rest-api/includes/functions.php).
   Error message: Uncaught TypeError: count(): Argument #1 ($value) must be of type
   Countable|array, stdClass given in /[public_html/wp-content/plugins/custom-wp-rest-api/includes/functions.php:96](http://academy.growthsupermarket.com/public_html/wp-content/plugins/custom-wp-rest-api/includes/functions.php:96)
   
   Stack trace:#0 /[public_html/wp-content/plugins/custom-wp-rest-api/admin/wpr_api_endpoints.php(10)](http://academy.growthsupermarket.com/public_html/wp-content/plugins/custom-wp-rest-api/admin/wpr_api_endpoints.php(10)):
   wcra_get_base_by_id()#1 [/public_html/wp-content/plugins/custom-wp-rest-api/admin/settings.php(29)](http://academy.growthsupermarket.com/public_html/wp-content/plugins/custom-wp-rest-api/admin/settings.php(29)):
   require_once(‘…’)#2 [/public_html/wp-includes/class-wp-hook.php(308)](http://academy.growthsupermarket.com/public_html/wp-includes/class-wp-hook.php(308)):
   wcra_menu_callback()#3 [/public_html/wp-includes/class-wp-hook.php(332)](http://academy.growthsupermarket.com/public_html/wp-includes/class-wp-hook.php(332)):
   WP_Hook->apply_filters()#4 [/public_html/wp-includes/plugin.php(517)](http://academy.growthsupermarket.com/public_html/wp-includes/plugin.php(517)):
   WP_Hook->do_action()#5 [/public_html/wp-admin/admin.php(259)](http://academy.growthsupermarket.com/public_html/wp-admin/admin.php(259)):
   do_action()#6 {main}  thrown

The topic ‘Delete Issue’ is closed to new replies.

 * ![](https://ps.w.org/custom-wp-rest-api/assets/icon-128x128.png?rev=1975404)
 * [Ultimate Endpoints With Rest Api](https://wordpress.org/plugins/custom-wp-rest-api/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-wp-rest-api/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-wp-rest-api/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-wp-rest-api/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-wp-rest-api/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-wp-rest-api/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Suryakiran](https://wordpress.org/support/users/suryakiran/)
 * Last activity: [2 years, 12 months ago](https://wordpress.org/support/topic/delete-issue-2/)
 * Status: not resolved