Cassandra Documentation

Version:

clearsnapshot

Usage

NAME
        nodetool clearsnapshot - Remove the snapshot with the given name from
        the given keyspaces

SYNOPSIS
        nodetool [(-h <host> | --host <host>)] [(-p <port> | --port <port>)]
                [(-pp | --print-port)] [(-pw <password> | --password <password>)]
                [(-pwf <passwordFilePath> | --password-file <passwordFilePath>)]
                [(-u <username> | --username <username>)] clearsnapshot [--all]
                [--older-than <older_than>]
                [--older-than-timestamp <older_than_timestamp>] [-t <snapshot_name>]
                [--] [<keyspaces>...]

OPTIONS
        --all
            Removes all snapshots

        -h <host>, --host <host>
            Node hostname or ip address

        --older-than <older_than>
            Clear snapshots older than specified time period.

        --older-than-timestamp <older_than_timestamp>
            Clear snapshots older than specified timestamp. It has to be a
            string in ISO format, for example '2022-12-03T10:15:30Z'

        -p <port>, --port <port>
            Remote jmx agent port number

        -pp, --print-port
            Operate in 4.0 mode with hosts disambiguated by port number

        -pw <password>, --password <password>
            Remote jmx agent password

        -pwf <passwordFilePath>, --password-file <passwordFilePath>
            Path to the JMX password file

        -t <snapshot_name>
            Remove the snapshot with a given name

        -u <username>, --username <username>
            Remote jmx agent username

        --
            This option can be used to separate command-line options from the
            list of argument, (useful when arguments might be mistaken for
            command-line options

        [<keyspaces>...]
            Remove snapshots from the given keyspaces