How to flush Redis

How to flush Redis

This article shows how to use flush Redis from the command line interface (CLI).

You must have SSH access to your server in order to use this method. If you do not have SSH access, see How to enable SSH access for details.

ATTENTIONUse caution when performing this operation. If you are a Nexcess client, we recommend discussing other options with our support team before flushing your Redis database. You may contact them by email or through the Client Portal.

  1. Log in to your server with SSH.

  2. Identify the Redis connection details in the configuration file for your CMS. If you need help locating this file, contact our Support Team.

  3. Flush your cache using one the below commands, but replace the angled brackets (<>) and everything between them with the indicated information. If the first path is invalid, try the second. The correct path depends on your server type and various other factors.

    1. redis-cli -s /var/tmp/redis-multi_<customer_specific_name>_cache.sock FLUSHALL
    2. redis-cli -s /var/run/redis-multi/<customer_specific_name>_cache.sock FLUSHALL

For more information

See the official Redis documentation about the Redis CLI or the FLUSHALL command

For 24-hour assistance any day of the year, contact our Support Team by email or through the Client Portal.

Article Rating (No Votes)
Rate this article
  • Icon PDFExport to PDF
  • Icon MS-WordExport to MS Word
Attachments Attachments
There are no attachments for this article.
Related Articles RSS Feed
Colocation Access Card Request Form
Added on Tue, Oct 6, 2015
How do I get sudo access to my Nexcess server?
Added on Wed, Feb 6, 2019
What is Git?
Added on Mon, Sep 15, 2014
How to decompress files in gzip
Added on Tue, Jan 6, 2015
Facility Access Policy (OTR)
Added on Mon, Jan 22, 2018
How to flush Memcached
Added on Mon, Apr 30, 2018
What is GeoIP?
Added on Fri, Oct 31, 2014
What is SOAP?
Added on Tue, Jan 6, 2015
How to change SSH passwords from the CLI
Added on Thu, Feb 8, 2018
How to transfer domains
Added on Wed, Nov 23, 2016