Wild Goose Chase

What does the idiom “Wild Goose Chase” mean?

Definition:

An impossible or futile search or task

For example:

“I think this is a wild goose chase. This library doesn’t have the books we need.”