Delete all summary records using code

Is there a command to delete all summary records that can be run from the ‘code’ section of a button?

Yes, there is. removeallsummaries

thanks. don’t know why I couldn’t find that