Title: Uncaught Error: Call to undefined function delete_plugins
Last modified: April 14, 2025

---

# Uncaught Error: Call to undefined function delete_plugins

 *  Resolved [Austin](https://wordpress.org/support/users/austyfrosty/)
 * (@austyfrosty)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-delete_plugins/)
 * Installing this locally on a PHP 8.4 install and when I set the “delete plugins”
   settings, I got the following Fatal error:
 *     ```wp-block-code
       Fatal error: Uncaught Error: Call to undefined function delete_plugins() in /.../wp-content/plugins/wordpress-beta-tester/src/WPBT/WPBT_Extras.php:223 Stack trace: #0 /.../wp-includes/class-wp-hook.php(324): WPBT_Extras->{closure:WPBT_Extras::remove_auto_installed_plugins():223}('') #1 /.../wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) #2 /.../wp-includes/plugin.php(517): WP_Hook->do_action(Array) #3 /.../wp-settings.php(704): do_action('init') #4 /.../wp-config.php(103): require_once('/Users/austinpa...') #5 /.../wp-load.php(50): require_once('/...') #6 /.../wp-admin/admin.php(34): require_once('/Users/austinpa...') #7 /.../wp-admin/tools.php(40): require_once('/...') #8 {main} thrown in /.../wp-content/plugins/wordpress-beta-tester/src/WPBT/WPBT_Extras.php on line 223
       ```
   
 * Looks like you are referencing the incorrect file location for `delete_plugins()`
   this function is located in the `wp-admin/includes/plugin.php` file, not “file.
   php”.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * (@afragen)
 * [1 year, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-delete_plugins/#post-18416131)
 * Wow, not sure how I managed that. Fixed in `develop`.

Viewing 1 replies (of 1 total)

The topic ‘Uncaught Error: Call to undefined function delete_plugins’ is closed 
to new replies.

 * ![](https://ps.w.org/wordpress-beta-tester/assets/icon-256x256.png?rev=2562317)
 * [WordPress Beta Tester](https://wordpress.org/plugins/wordpress-beta-tester/)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-beta-tester/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-beta-tester/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-beta-tester/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-beta-tester/reviews/)

## Tags

 * [fatal](https://wordpress.org/support/topic-tag/fatal/)

 * 1 reply
 * 3 participants
 * Last reply from: [Andy Fragen](https://wordpress.org/support/users/afragen/)
 * Last activity: [1 year, 1 month ago](https://wordpress.org/support/topic/uncaught-error-call-to-undefined-function-delete_plugins/#post-18416131)
 * Status: resolved