Select the implied boundary edge (A), and then select the entities to trim (B).
Result.
How do I...
Trim an entity
Trim several entities using the fence selection method