This guide explains how to delete multiple rows from a table, assuming you've already connected to a data source. We'll use PostgreSQL for this example, but you can adjust the queries based on the SQL ...
https://github.com/rogerjdeangelis/utl-using-the-sql-delete-clause-for-in-place-modification-of-a-sql-table-in-sas-r-python Example maintaining indexes, sort flag ...