Delete segments where source is same as target?

Is it possible to delete the TM segments where source and target are the same? And, also, add an extra segment length criterion, say over x characters?