Sample CLI
gway cdv delete
References
Full Code
def delete(table_path: str, entry_id: str):
"""
Remove a record by ID from the CDV table.
"""
path = _resolve_path(table_path)
records = _read_table(path)
if entry_id in records:
del records[entry_id]
_write_table(path, records)
gw.info(f"Deleted record '{entry_id}' from table.")
return True
return False