reset counters hotspot

hello! i have a simple question.

I want to reset the user counters. there is a reset all counters button. even when i open a single hotspot user the button says reset all counters. i have clicked by mistake this button twice loosing all the user counters. i need to know how can i reset a single user, the simplest way?

/ip hotspot user reset-counters “username”

does the command above function right or will it reset all counters?

thnx

/ip hotspot user reset-counters [find name="username"]

Or any of the other available fields that you can set information for, like comments, passwords, mac-address, etc. For example if you use comment, it will reset any counter with that comment you search for. Use [find] to return all users and reset the counters.

hi
how can I use the following code in c# api?

/ip hotspot user reset-counters [find name=“username”]

I did this but not work:

mikrotik.Send("/ip/hotspot/user/reset-counters [find name = " + username+"]", true);

also tried it but no luck! :frowning:

mikrotik.Send("/ip/hotspot/user/reset-counters");
mikrotik.Send("[find name =" + username+"]", true);

this will reset all counters of all users!
I want to reset just one user at a time.

finally i found a way to mimic the reset of one user statistics!
delete the user and add it again!!!
hope this will be useful for you too!

this is work
/ip hotspot user reset-counters [find name=“username”]
thanks