Deletion of all records in a module

Deletion of all records in a module

Hello everyone, what's the fastest way of deleting all records in a module? I'm currently using a function to delete records but it's taking time