Delicious Brains

Documentation

Uninstall

To completely uninstall Amazon Web Services, WP Offload S3 or the Assets Addon, follow the steps below. Before doing so remember to take a backup of your database.

Amazon Web Services

If you defined your AWS access keys via the wp-config.php file you do not need to do anything more than deactivate and delete the plugin. If you entered your AWS access keys via the WordPress dashboard you may perform the following additional step to ensure all data is completely removed.

Database Cleanup

Run the following query via the CLI or using a tool such as phpMyAdmin. Remember to substitute wp_ with your database prefix.

For multisite installs you should run the following query on the wp_sitemeta table.

Options

DELETE FROM wp_options
WHERE option_name = 'aws_settings';

WP Offload S3

Before deactivating and deleting the plugin you must ensure all Media Library files exist locally. To do so, visit the WP Offload S3 settings screen and click the ‘Begin Download’ button (Pro only). This will download all Media Library files from S3 to your local server.

uninstall-download

Once the download tool has completed you can safely deactivate and delete WP Offload S3.

Crons

Using a plugin such as WP Crontrol ensure the following cron events have been removed:

  • as3cf_cron_update_meta_with_region
  • as3cf_cron_update_file_sizes
  • wpos3_find_replace_cron
  • wpos3_media_actions_cron
  • wpos3_settings_change_cron

Database Cleanup

Run the following queries via the CLI or using a tool such as phpMyAdmin. Remember to substitute wp_ with your database prefix.

For multisite installs you should run the Options and Transients queries on the wp_sitemeta table. The Postmeta query should be run for every wp_{0-9}_postmeta table that exists.

Options

DELETE FROM wp_options
WHERE option_name = 'tantan_wordpress_s3'
OR option_name = 'update_meta_with_region_session'
OR option_name = 'update_file_sizes_session'
OR option_name = 'update_meta_error_session'
OR option_name = 'as3cf_compat_addons_to_install'
OR option_name = 'amazonS3_cache'
OR option_name = 'as3cfpro_licence_issue_type';

Postmeta

DELETE FROM wp_postmeta
WHERE meta_key = 'amazonS3_cache'
OR meta_key = 'amazonS3_info'
OR meta_key = 'wpos3_filesize_total'
OR meta_key = 'wpos3_old_file_path'
OR meta_key = 'wpos3_old_meta';

Transients

DELETE FROM wp_options
WHERE option_name LIKE '%transient_as3cf%'
OR option_name LIKE '%transient_timeout_as3cf%'
OR option_name LIKE '%transient_wpos3%'
OR option_name LIKE '%transient_timeout_wpos3%';

Usermeta

DELETE FROM wp_usermeta
WHERE meta_key = 'as3cf_notices'
OR meta_key = 'as3cf_dismissed_notices'
OR meta_key = 'as3cfpro-dismiss-licence-notice';

S3 Files

Using the AWS console or another S3 browser remove the Media Library files, which by default reside in the wp-content/uploads path.

Assets Addon

Simply deactivating and deleting the plugin is enough to ensure all WordPress assets are served from the local server. However, you may perform the following additional steps to ensure the Assets Addon is completely removed.

Crons

Using a plugin such as WP Crontrol ensure the following cron events have been removed:

  • as3cf_assets_scan_files_for_s3_cron
  • as3cf_assets_process_files_for_s3_cron

Database Cleanup

Run the following queries via the CLI or using a tool such as phpMyAdmin. Remember to substitute wp_ with your database prefix.

For multisite installs you should run both queries on the wp_sitemeta table.

Options

DELETE FROM wp_options
WHERE option_name = 'as3cf_assets'
OR option_name = 'as3cf_assets_files_to_process'
OR option_name = 'as3cf_assets_enqueued_scripts'
OR option_name = 'as3cf_assets_location_versions'
OR option_name = 'as3cf_assets_upgrade_session'
OR option_name = 'as3cf_assets_failures'
OR option_name LIKE 'as3cf_assets_files%';

Transients

DELETE FROM wp_options
WHERE option_name LIKE '%transient_as3cf-assets%'
OR option_name LIKE '%transient_timeout_as3cf-assets%';

S3 Files

Using the AWS console or another S3 browser remove the core, plugins and themes directories.