---
search:
  tags:
    - Sessions
    - DELETE
seo:
  description: >-
    Remove and return the newest message so a failed agent turn can be…
    Reference for the DELETE /api/v2/sessions/{id}/messages/last endpoint in the
    Anlyon API.
sidebar:
  label: Pop the newest session message
  badge: DELETE
title: Pop the newest session message
type: openapi-operation
---
Remove and return the newest message so a failed agent turn can be retried.

`DELETE /api/v2/sessions/{id}/messages/last`
