update index.html

This commit is contained in:
idk
2022-08-04 00:02:05 -04:00
parent bc73f72bb1
commit 5e576d9d4a
5 changed files with 123 additions and 14 deletions

View File

@ -53,6 +53,11 @@ func I2PKeystorePath() (string, error) {
return I2P_KEYSTORE_PATH, nil
}
// DeleteI2PKeyStore deletes the I2P Keystore.
func DeleteI2PKeyStore() error {
return os.RemoveAll(I2P_KEYSTORE_PATH)
}
// TorKeystorePath returns the path to the Onion Keystore. If the
// path is not set, it returns the default path. If the path does
// not exist, it creates it.
@ -65,3 +70,8 @@ func TorKeystorePath() (string, error) {
}
return ONION_KEYSTORE_PATH, nil
}
// DeleteTorKeyStore deletes the Onion Keystore.
func DeleteTorKeyStore() error {
return os.RemoveAll(ONION_KEYSTORE_PATH)
}