Skip to content

feature request: implement DELETE /_localstack/ses endpoint #7491

@ert78gb

Description

@ert78gb

Is there an existing issue for this?

  • I have searched the existing issues

Feature description

Provide an URL where I can delete stored SES emails.
My motivation is to write integration tests much easier, if I could delete the stored emails from the localstack before each test case.

I use the docker image to run localstack. Mount the /var/lib/localstack folder to the host and delete the files from the tmp/state/ses is cumbersome because of the file permission issue of docker.

I think the simplest way to achieve the empty SES emails state is to implement a new endpoint in a same way as to the GET /_localstack/ses has been implemented:

path: /_localstack/ses
method: DELETE

🧑‍💻 Implementation

I am not a python developer, but I think one solution is to extend the SesServiceApiResource with an on_delete method.

Open question for me is either delete the /var/lib/localstack/tmp/state/ses folder or just delete the files of the ses folder.
The folder does not exist when the container starts. It is created when the first email received and saved by the service.
I think both solutions have the same performance impact, so the real question is what is preferred by the maintainers.

As I mentioned I am not familiar with python ecosystem but I am happy to help implementing the feature if you accept the request.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    aws:sesAmazon Simple Email Servicegood first issueGood item to work on for newcomersstatus: triage neededRequires evaluation by maintainerstype: featureNew feature, or improvement to an existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions