diff --git a/synapseclient/models/protocols/table_protocol.py b/synapseclient/models/protocols/table_protocol.py index cf4c34515..c80f933af 100644 --- a/synapseclient/models/protocols/table_protocol.py +++ b/synapseclient/models/protocols/table_protocol.py @@ -141,7 +141,7 @@ def delete_rows( syn = Synapse() syn.login() - Table.delete_rows(query="SELECT ROW_ID, ROW_VERSION FROM syn1234 WHERE foo = 'asdf'") + Table(id="syn1234").delete_rows(query="SELECT ROW_ID, ROW_VERSION FROM syn1234 WHERE foo = 'asdf'") """ return pd.DataFrame() diff --git a/synapseclient/models/table.py b/synapseclient/models/table.py index db6f8b931..470ed4fef 100644 --- a/synapseclient/models/table.py +++ b/synapseclient/models/table.py @@ -971,7 +971,7 @@ async def delete_rows_async( syn.login() async def main(): - await Table.delete_rows_async(query="SELECT ROW_ID, ROW_VERSION FROM syn1234 WHERE foo = 'asdf'") + await Table(id="syn1234").delete_rows_async(query="SELECT ROW_ID, ROW_VERSION FROM syn1234 WHERE foo = 'asdf'") asyncio.run(main()) """