# Deleting a stream
# Soft deleting
To delete a stream over the Atom interface, issue a
DELETE request to the resource.
By default when you delete a stream, EventStoreDB soft deletes it. This means you can recreate it later by setting the
$tb metadata section in the stream. If you try to
GET a soft deleted stream you receive a 404 response:
You can recreate the stream by appending new events to it (like creating a new stream):
The version numbers do not start at zero but at where you soft deleted the stream from
# Hard deleting
You can hard delete a stream. To issue a permanent delete use the
A hard delete is permanent and the stream is not removed during a scavenge. If you hard delete a stream, you cannot recreate the stream.
DELETE as before but with the permanent delete header:
The stream is now permanently deleted, and now the response is a
If you try to recreate the stream as in the above example you also receive a