To skip, avoid, leave, or refuse to participate in an event or activity. One can ditch school or one's acquaintances by leaving them behind or by never showing up to begin with.
In this sense, ditch can also mean leaving something behind.
A04 Dance Hall of the Dead (02-04) p. 35
A07 The Dark Wind (04-06), p. 159
Tony Hillerman Portal