pub async fn delete_cost_metric(pool: &Pool<MySql>, id: i64) -> Result<()>
Deletes a cost metric from the database.