Trash

Delete a trashed Pen for good

A Pen that is not in the trash is refused.

delete/v2/trash/pens/{id}

Request

  • Base URL
    https://api.codepen.io
  • Auth
    • HTTP bearer
    • or API key in header X-API-Key

Response

The trash item that was deleted.

deleted_atstring date-time required
expires_atstring date-time required
idstring required
item_idstring required

The Pen's or Collection's id, for the restore endpoints.

titlestring required
type'Pen' | 'Collection' required

Changes

No recorded changes to this operation across all 1 revision of this API.