@classmethod
def cleanup_all(cls):
    """
        Delete all temporary directories associated with all
        :class:`TempDirectory` objects.
        """
    for i in tuple(cls.instances):
        i.cleanup()
