Cleaning database or clean data in table

if someone wants to clean data in table or clean whole database we don't have any action in entities actions like (create,update,createorupdate,delete,...) we should have deleteall action which will delete all the records based on some permission parameter .we can use delete action but here we have to use for loop for iteration every record.