truncpdm function

Function to drop excluded tasks.