rc = unlink(path);
if (rc < 0)
ERROR("can't removing '%s': %m", path);
/* removes the parent directory if empty */
rc2 = snprintf(path, sizeof path, "%s/%s", root, id);
rc = unlink(path);
if (rc < 0)
ERROR("can't removing '%s': %m", path);
/* removes the parent directory if empty */
rc2 = snprintf(path, sizeof path, "%s/%s", root, id);