(self, request, container_name, object_name)
Delete an object in a container.
Delete an object in a container.
Delete an object in a container .
def delete_object(self, request, container_name, object_name):
        """
        Delete an object in a container.
        """
        if container_name in self.containers:
            container = self.containers[container_name]
            if object_name in container.objects:
                del container.objects[object_name]
                request.setResponseCode(204)
                return b""
            else:
                return NoResource("No such object in container")
        else:
            return NoResource("No such container")
def delete_object ( self , request , container_name , object_name ) : if container_name in self . containers : container = self . containers [ container_name ] if object_name in container . objects : del container . objects [ object_name ] request . setResponseCode ( 204 ) return b"" else : return NoResource ( "No such object in container" ) else : return NoResource ( "No such container" )