Custom Table api

web dev asked on September 21, 2018 18:57

hello kentico dev i try to apply a scheduled task to save data in custom table and now i try to delete all records in one time not one by one is there any methode in c# thanks

Correct Answer

Brenden Kehren answered on September 21, 2018 19:06

I believe the best solution for this is to use this method:

CustomTableItemProvider.DeleteItems(className);

You can also simply call a SQL Query to truncate the table.

TRUNCATE TABLE <table name>

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.