This plugin enables logging of all calls to the WordPress REST API. You can view all logs from the WordPress Admin under API Log Pro.
This plugin offers some basic wp-cli support. You can use the following command to delete all the logs in the db.
wp api-log-pro delete