How to do no more than 3 deletes a month

Question from ab_al#8947:

I have a method that will check number of times user delete their tasks. Requirement includes no more than 3 deletes in a month. Can someone recommend a library to achieve this task?

You need to record this information somewhere.

The "simple" solution is to record the deletions in a database and block future ones if they are up to 3 in the last month.

So the db can store the record of deletes and the times and then it's up to you to determine what a "month" is.


<- Index