(self, request, container_name)
Api call to remove a container
Api call to remove a container
Api call to remove a container
def delete_container(self, request, container_name):
        """
        Api call to remove a container
        """
        if container_name in self.containers:
            if len(self.containers[container_name].objects) == 0:
                del self.containers[container_name]

                request.setResponseCode(204)
                return b""

            else:
                return Conlict("Container not empty")

        else:
            return NoResource("No such container")
def delete_container ( self , request , container_name ) : if container_name in self . containers : if len ( self . containers [ container_name ] . objects ) == 0 : del self . containers [ container_name ] request . setResponseCode ( 204 ) return b"" else : return Conlict ( "Container not empty" ) else : return NoResource ( "No such container" )