def strip_path_prefix(path, prefix):
    """
    Strip a prefix from a path if it exists and any remaining prefix slashes.

    Args:
        path: The path string to strip.
        prefix: The prefix to remove.

    Returns:
        The stripped path. If the prefix is not present, this will be the same as the input.

    """
    if path.startswith(prefix):
        path = path[len(prefix):]
    if path.startswith("/"):
        path = path[1:]
    return path