sqlite/funcs/crud_sqlite.py
def delete(id):
    """Delete an item selected by id."""
    connection = connect()
    cursor = connection.cursor()
    cursor.execute(f"DELETE FROM products WHERE id = {int(id)}")
    check_operation(connection, cursor)
    disconnect(connection)
Delete an item selected by id.
Delete an item selected by id.
Delete an item selected by id .
def delete(id):
    connection = connect()
    cursor = connection.cursor()
    cursor.execute(f"DELETE FROM products WHERE id = {int(id)}")
    check_operation(connection, cursor)
    disconnect(connection)
def delete ( id ) : connection = connect ( ) cursor = connection . cursor ( ) cursor . execute ( f"DELETE FROM products WHERE id = {int(id)}" ) check_operation ( connection , cursor ) disconnect ( connection )
Delete an item selected by id.
Delete an item selected by id .
"""Delete an item selected by id."""
id