code: public boolean removeImportedKey(ECKey key) {
          checkNotNull(key);
          checkArgument(!(key instanceof DeterministicKey));
          return basic.removeKey(key);
      }
docs: Removes a key that was imported into the basic key chain. You cannot remove deterministic keys.
  @throws java.lang.IllegalArgumentException if the key is deterministic.