When a delete occurs, the caches are now cleared. Added a delete REST API for deleting a whole metric.