In transact sql you can use the following:
delete from pubs..auth1 where not exists
(select distinct au_lname from Northwind..auth2 as x
where auth1.au_lname = x.au_lname)
For this example I created 2 tables identical to the SQL Server pubs author table and copied one into Northwind (auth2)and one into pubs (auth1).
Then delete some records from Northwind..auth2. Your identical tables are now out of synch. Run the query above from pubs database and your tables will synch back up based off of the Northwind auth2 table. Depends which table you want to synch up with.
This process is called synching of tables.