ltdconveyor/s3/upload.py
def delete_file(self, filename):
        """Delete a file from the bucket.

        Parameters
        ----------
        filename : `str`
            Name of the file, relative to ``bucket_root/``.
        """
        key = os.path.join(self._bucket_root, filename)
        objects = list(self._bucket.objects.filter(Prefix=key))
        for obj in objects:
            obj.delete()
def delete_file(self, filename):
        key = os.path.join(self._bucket_root, filename)
        objects = list(self._bucket.objects.filter(Prefix=key))
        for obj in objects:
            obj.delete()
def delete_file ( self , filename ) : key = os . path . join ( self . _bucket_root , filename ) objects = list ( self . _bucket . objects . filter ( Prefix = key ) ) for obj in objects : obj . delete ( )
Delete a file from the bucket.

        Parameters
        ----------
        filename : `str`
            Name of the file, relative to ``bucket_root/``.
Delete a file from the bucket .