Skip to content

Add a method to delete a Container? #79

Open

Description

@hideya

Maybe I'm overlooking but I don't find any way to delete a Container. I'd expect Container class to have destroy method, but I don't find any. How can I delete a Container (= remove the directory on the server that is associated with the container) ?

Activity

  1. raymondfeng commented on Jul 15, 2015

    @raymondfeng
    Contributor

    The backend has the following REST api to delete a container:

    https://github.com/strongloop/loopback-component-storage/blob/master/lib/storage-service.js#L277-L283

    It should be mapped to DELETE /api/containers/<container>

  2. hideya commented on Jul 15, 2015

    @hideya
    Author

    Thanks, @raymondfeng. I see. I guess the SDK just haven't implemented the destroy method that is mapped to the REST API. I think it better be fixed.

  3. changed the title [-]No method to delete a Container?[/-] [+]Add a method to delete a Container?[/+] on Sep 8, 2015
  4. bajtos commented on Sep 8, 2015

    @bajtos
    Contributor

    👍

    I agree the destroy method should be added to the API.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions