async def METHOD_NAME(self, tenant_id, task_run_id):
    artifact_id = await api.artifacts.create_task_run_artifact(
        task_run_id=task_run_id,
        tenant_id=tenant_id,
        kind="link",
        data={"link": "http"},
    )
    success = await api.artifacts.delete_task_run_artifact(
        task_run_artifact_id=artifact_id
    )
    assert success
    amount = await models.TaskRunArtifact.where(
        {"task_run_id": {"_eq": task_run_id}}
    ).count()
    assert amount == 0
    with pytest.raises(ValueError):
        await api.artifacts.delete_task_run_artifact(
            task_run_artifact_id="",
        )