#!/bin/bash

## Copyright (C) 2012 - 2025 ENCRYPTED SUPPORT LLC <adrelanos@whonix.org>
## See the file COPYING for copying conditions.

#### meta start
#### project Whonix
#### category tor and usability
#### description
#### gateway_only yes
## Deletes Tor consensus files.
#### meta end

if ! [ "$(id -u)" = 0 ]; then
   echo "$0: ERROR: This script must run as root/sudo! run:"
   echo "sudo $0"
   exit 1
fi

rm -f /var/lib/tor/cached-certs
rm -f /var/lib/tor/cached-microdesc-consensus
rm -f /var/lib/tor/cached-microdescs
rm -f /var/lib/tor/cached-microdescs.new
