prune

fun prune()

Remove all paths from the receiver that do not lead to payloads.