Delete all entries in a custom table programatically


I’m using magento 2, I created some tables that I fill with entries then I want to delete all those entries at once.
I want the solution to use Magento repository abd without using a foreach. Something like deleteAll for example.

Thanks alot.