remove public key, file cleanup