pymensago/auth.py
def remove_key(db: sqlite3.Connection, keyid: str) -> RetVal:
	'''Deletes an encryption key from a workspace.
	Parameters:
	keyid : CryptoString-formatted key hash

	Returns:
	error : string
	'''
	cursor = db.cursor()
	cursor.execute("SELECT keyid FROM keys WHERE keyid=?", (keyid,))
	results = cursor.fetchone()
	if not results or not results[0]:
		return RetVal(ErrNotFound)

	cursor.execute("DELETE FROM keys WHERE keyid=?", (keyid,))
	db.commit()
	return RetVal()
Deletes an encryption key from a workspace.
	Parameters:
	keyid : CryptoString-formatted key hash

	Returns:
	error : string
	
Deletes an encryption key from a workspace.
Parameters:
keyid : CryptoString-formatted key hash

error : string
Deletes an encryption key from a workspace . Parameters : keyid : CryptoString - formatted key hash error : string
def remove_key(db: sqlite3.Connection, keyid: str) -> RetVal:
	cursor = db.cursor()
	cursor.execute("SELECT keyid FROM keys WHERE keyid=?", (keyid,))
	results = cursor.fetchone()
	if not results or not results[0]:
		return RetVal(ErrNotFound)
	cursor.execute("DELETE FROM keys WHERE keyid=?", (keyid,))
	db.commit()
	return RetVal()
def remove_key ( db : sqlite3 . Connection , keyid : str ) -> RetVal : cursor = db . cursor ( ) cursor . execute ( "SELECT keyid FROM keys WHERE keyid=?" , ( keyid , ) ) results = cursor . fetchone ( ) if not results or not results [ 0 ] : return RetVal ( ErrNotFound ) cursor . execute ( "DELETE FROM keys WHERE keyid=?" , ( keyid , ) ) db . commit ( ) return RetVal ( )
Deletes an encryption key from a workspace.
Deletes an encryption key from a workspace .
'''Deletes an encryption key from a workspace.
	Parameters:
	keyid : CryptoString-formatted key hash

	Returns:
	error : string
	'''
db
sqlite3.Connection
keyid
str