'Waits until the given file or directory is removed.
The path can be given as an exact path or as a glob pattern.
The pattern matching syntax is explained in `introduction`.
If the path is a pattern, the keyword waits until all matching
items are removed.
The optional ``timeout`` can be used to control the maximum time of
waiting. The timeout is given as a timeout string, e.g. in a format
``15 seconds``, ``1min 10s`` or just ``10``. The time string format is
described in an appendix of Robot Framework User Guide.
If the timeout is negative, the keyword is never timed-out. The keyword
returns immediately, if the path does not exist in the first place.'

def wait_until_removed(self, path, timeout='1    minute'):

    path = self._absnorm(path)
    timeout = timestr_to_secs(timeout)
    maxtime = (time.time() + timeout)
    while self._glob(path):
        if ((timeout >= 0) and (time.time() > maxtime)):
            self._fail(("'%s'    was    not    removed    in    %s." % (path, secs_to_timestr(timeout))))
        time.sleep(0.1)
    self._link("'%s'    was    removed.", path)
