Unlock Special Pricing for a Limited Time – GET 70% OFF NOW!

SpeedyGo
  • Feature
  • Documentation
  • Pricing
  • Blog
  • Support Ticket
  • FAQ
  • Login
It's Free Download Now
Login

Getting Started

  • Requirements & Compatibility
  • Installation
  • First-Time Setup

Caching & Preloading

  • Scheduled Expiration & Auto Purge
  • Cache Warm-Up
  • Cache Preloading
  • Mobile Caching
  • Object Caching
  • Browser Caching
  • Full-Page Caching

Asset Optimization

  • JS Interaction Loader
  • JavaScript Combination
  • CSS Combination
  • JavaScript Minification
  • CSS Minification
  • HTML Minification

Compression

  • Defer Scripts
  • Brotli Compression
  • Gzip Compression

Image Optimization (Pro)

  • Recommended Configuration (Pro Users)
  • Lazy Load
  • WebP Quality Control
  • Conversion Scope Rules
  • Enable WebP Conversion

PageSpeed & Analytics (Pro)

  • Mobile vs Desktop Tracking
  • Google PageSpeed API Integration

System & Developer Tools

  • Clean Uninstallation
  • WP-Cron Monitoring
  • Licensing & Security Checks
  • Admin Bar Purge Action
  • Advanced Cache Rules (.htaccess)

Troubleshooting

  • Purging Cache on UI Glitches
  • WebP Conversion Failing
  • Missing API Key / Connection Error
  • Excluding Broken Files (Minification & Combination Issues)
  • Debugging Compression Warnings
  • System Requirement Issues

Changelog

  • Changelog

Contact & Support

  • Contact & Support
View Categories
  • Home
  • Docs
  • System & Developer Tools
  • Clean Uninstallation

Clean Uninstallation

SpeedyGo provides a complete cleanup process during plugin deactivation to prevent leftover files, rules, or database entries.

30.1 Overview #

When the plugin is deactivated, SpeedyGo ensures that all generated resources and configurations are properly removed to maintain a clean system state.

Technical Context #

  • Uses register_deactivation_hook()
  • Triggers a controlled cleanup routine
  • Prevents accidental deactivation

30.2 Deactivation Protection #

  • A custom JavaScript confirmation popup appears before deactivation
  • Prevents accidental removal
  • Requires user confirmation before cleanup begins

30.3 Cleanup Process #

1️⃣ Cache Directory Removal #

Recursively deletes generated cache directories using:

sg_recursive_delete_dir()

Including:

wp-content/uploads/speedygo-cache/

2️⃣ .htaccess Marker Removal #

Removes the managed configuration block:

# BEGIN SPEEDY GO
...
# END SPEEDY GO

Ensuring no residual server rules remain.

3️⃣ Database Cleanup #

Deletes all WordPress options with prefix:

speedygo_

From the:

wp_options

This ensures:

  • No orphaned data
  • No leftover configuration
  • Clean database state

30.4 Best Practice Recommendation #

  • Backup your website before deactivation
  • Confirm no other system depends on SpeedyGo cache files
  • Verify .htaccess after removal if manually customized

Clean Uninstallation guarantees a complete and safe removal of all SpeedyGo-generated resources.

Updated on March 12, 2026

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
WP-Cron Monitoring
Table of Contents
  • 30.1 Overview
    • Technical Context
  • 30.2 Deactivation Protection
  • 30.3 Cleanup Process
    • 1️⃣ Cache Directory Removal
    • 2️⃣ .htaccess Marker Removal
    • 3️⃣ Database Cleanup
  • 30.4 Best Practice Recommendation
SpeedyGo
  • Support Ticket
  • Feature
  • Documentation
  • Blog
  • FAQ
  • Get SpeedyGo

SpeedyGo is built to make your WordPress site faster, lighter, and easier to manage. From caching to compression, we simplify performance so you can focus on growing your website.

©2026 SpeedyGo. All rights reserved.

  • Privacy Policy
  • Refund Policy
  • Terms and Conditions
  • Privacy Disclosure