Deleting Logs, Traces, and Metrics

  1. Execute the following command to delete logs and traces from internal Elastic Search:
    curl -XDELETE -k "http://<elastic-search-host>:<elastic-search-port>/_all" -H"Content-Type: application/json"

    Example:

    curl -XDELETE -k "https://elastic:76qt2b7rz87ms2cs6fmb2c4l@10.178.246.56:30731/_all" -H"Content-Type: application/json"
  2. Execute the following command to delete metrics from internal Victoria Metrics:
    curl 'http://<victoria-metrics-URL>:<port>/api/v1/admin/tsdb/delete_series?match\[\]=<mertic-name>'

    Example:

    curl 'http://10.178.246.56:32001/api/v1/admin/tsdb/delete_series?match\[\]=http_requests_total'