Skip to content

Commit

Permalink
Deprecate message delete API
Browse files Browse the repository at this point in the history
  • Loading branch information
horkhe committed Jun 28, 2016
1 parent 08c128f commit fbbf927
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions source/api-sending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -216,14 +216,13 @@ These are the parameters when the ``Accept`` header is set to ``message/rfc2822`
Deleting Stored Messages
========================

To delete an inbound message that has been stored via the ``store()`` action, use the URL found in the stored event, or in the notify webhook.

.. code-block:: url
DELETE domains/<domain>/messages/<message>
You don't have to construct this URL on your own. You can just use the URL provided in the Events API or the notification webhook. A sample URL returned from the Events API is ``https://api.mailgun.net/v3/domains/mydomain.com/messages/WyJhOTM4NDk1ODA3Iiw``.
Stored messages are retained in the system for 3 days and automatically purged
after this retention period, therefore there is no need to delete messages
explicitly.

.. note:: Mailgun reserves the right to impose a limit on the size and number
of stored messages. In the event this is necessary, you will be
notified in advance.

Examples
========
Expand Down

0 comments on commit fbbf927

Please sign in to comment.