Generally, plugins have some functionality hooked onto the deactivation action. This could be clearing cache, resetting options, you name it.
Therefore the best practice is to deactivate them first, so they have the opportunity to clean up and execute whatever functionality they have hooked onto the deactivate event.
Now if the plugin is broken and can’t be executed, or if the deactivation function does something you don’t want or is broken in itself, you might need to delete it without running that functionality. In my experience, nothing bad really happens, except some junk files being left.
This can be different depending on the plugin however, so always excercise caution with this type of forced deletion.
Related Posts:
- How I prevent a plugin to be loaded when doing WP-CLI?
- Run WP-CLI using PHP
- Difference between deactivating, uninstalling, and deleting plugins
- Can’t install local plugin (zip) with wp-cli [closed]
- WP WC CLI – WooCommerce setup store with wp-cli [closed]
- How can I list only sites that use a particular theme or plugin?
- Why would WP-CLI and WP Admin show different list of plugins with updates?
- Error when setting up phpunit tests with wp-cli scaffold
- How to use WP-CLI / WC-CLI to bulk import 1000s of products (variable and simple)?
- How can I list all installed plugins/themes/versions from CLI/API?
- PHP if statement with German umlauts [closed]
- Circumvent WP CLI Command
- Unable to import complete data remote wp-cli wordpress
- WP-CLI plugin delete command fails silently
- All plugins deactivated. What could cause this?
- Disappearing plugins
- Generate dormant hook references
- Building a custom REST API
- What plugin can I use to create a list / slideshow of featured images?
- How to save the values of checkbox to the register setting?
- WooCommerce – how to display product category above product? [closed]
- Why doesn’t the WordPress Importer update posts?
- Way to force media uploader use custom image size
- How to Add jQuery Infinite Scroll to My Custom Archive Page
- WooCommerce create new product and add to cart on form submit
- Extending WC_Cart in woocommerce
- Change page title from plugin
- Add new password rule to Ultimate Member register form
- Claim Listing functionality – how to send email to users when their claim has been approved or denied
- A plugin for having rel=”nofollow” in posts?
- Does the ‘nav_menu_css_class’ filter accept 2 or 3 arguments?
- How does WordPress ensure plugins run at the same time and how does it solve a plugin’s dependency on another one?
- Upload images from custom plugin using the media modal
- Options page not displayed under Settings menu
- Styling readme.html in plugin?
- Follow post plugins for WordPress
- How to include and use custom class files in plugin?
- Remove obsolete plugins artifacts from database tables
- How can I stop a plugin being updated?
- How does WordPress process plugin installations?
- problems with wordpress and php version 5.3.3-1
- My Category is too big on the Menu what can i do?
- Changing labels of status filters for post grid
- Where to call add_shortcode function in WordPress Plugin Boilerplate?
- Hook to plugins admin settings
- Fusion Slider Just keeps loading [closed]
- (WooCommerce) Remove Sidebar only on Single-Product page
- Own plugin corrups plugin-activation
- Social sharing toolkit is not showing on ajax load
- wordpress plugin is not activating from widget
- Owl Carousel2 image not displaying full width when using Stretch row and content, Stretch row and content(no padding) in wordpress
- WpDataTables – View Image Directory
- Error with third-party package: “Updating failed. Error message: The response is not a valid JSON response.” [closed]
- How generate 200% image size and save with suffix @2x
- Show existing POST categories as items in the sidebar menu [closed]
- How to show only next post pagination link using wp_link_pages()
- Can’t send mails wordpress using SMTP authenticate [closed]
- Some recent plugin updates have failed “Could not create directory”
- How do I apply style to each category of a list?
- add_action does not call the function
- Use wp-config.php constants in all files of plugin
- a href adds default URL with the given echo URL
- Disabling Wp_is_mobile from backend?
- Gutenberg Block Style CSS Class Is Not Applying on Backend
- How to install Google Analytics onto site without internet access
- Replacing global wp_query
- How to create a plugin that includes all the other plugins?
- Mowing site to another domain in simplest way
- ACF – How to set the menu order for the relationship field
- wp_get_http has been deprecated. Use WP_Http instead
- Custom search search does not work?
- Add custom PHP and HTML to the_content()
- How to change my 3000 Published post status to Draft using PHPMyAdmin
- Adding an item to an anonymous array inside a filter?
- add menu page not showing Icon
- $wpdb not working wordpress plugin ajax call
- One quantity for group of variations
- Securing a plugin pop-up window
- Plugin for showing single product on a page
- Is admin section completely customizable in terms of styling?
- Taxonomy question
- What’s a good way to default behavior if a plugin is inactive?
- How do I add languages?
- Render Shortcode in Lightbox Gallery
- Which Membership Plugin? [closed]
- Adding featured image to post display widget
- Replace code in plugin template
- Moving sidebar links to below the header menu
- How to delete remain data in WP database after deleting custom post via admin interface
- Adding a variable to a meta field in the backend?
- Populate Woocommerce order notes with custom field value
- cmb2 select option output [closed]
- Jquery post responses 500 error after some time and lastly an 503 error
- Private plugin updating – GitHub zip file changes the plugin directory (with release or branch name)
- WordPress custom block: Link saved in database not retrieved when editing post
- Accessing Correct Database to Create REST API Endpoint
- How do I replace a logo image that’s hard-coded into a plugin’s logo.php file?
- How to Order Posts by Taxonomy in Jetengine Plugin
- Detect if user is on the specific page in WordPress
- A multi-section WordPress store [closed]