Taking the question literally, this removes the following n characters from fields 2 and 4 for any n embedded in the field.
perl -lane 'for $i (1, 3) {@nums = $F[$i] =~ /(\d+)/g; for $num (@nums) {$F[$i] =~ s/$num.{$num}//}}; print join("\t", @F)'
Other answers delete the number and all subsequent characters that are the same.
To illustrate the difference between my answer and others, use the following input:
6 ccg8qqqqqqqqqqqqggg 10 ccccg3qqqqqqqqqqqggggg
My version outputs this:
6 ccgqqqqggg 10 ccccgqqqqqqqqggggg
:
6 ccgggg 10 ccccgggggg