Packing a Paradox table - to remove deleted records

I am having some trouble with understanding how to set up the code, that
will allow only the deleted records in a paradox table to be removed.  I see
that I need to open the table execlusively, but after this what Delphi
procedure, function or code do I need to use, to Pack a Paradox table.

thanks for any help