'Delete a file or empty directory path.
Unlike the default file system storage this will also delete an empty
directory path. This behavior is more in line with other storage
systems like S3.'

def delete(self, name):

    full_path = self.path(name)
    if os.path.isdir(full_path):
        os.rmdir(full_path)
    else:
        return super(LocalFileStorage, self).delete(name)
