Trim walls over roof

i made these bz dynamo but the walls are coming out of roof , so i want to trim the walls coming out of wall . your help will be appreciated

Please refrain from duplicate posts in the future.