'Extension method for removing all partially completed OSS multipart
uploads.
:param container: The container holding the uploads
:type container: :class:`Container`
:keyword prefix: Delete only uploads of objects with this prefix
:type prefix: ``str``'

def ex_abort_all_multipart_uploads(self, container, prefix=None):

    for upload in self.ex_iterate_multipart_uploads(container, prefix, delimiter=None):
        object_path = self._get_object_path(container, upload.key)
        self._abort_multipart(object_path, upload.id, container=container)
