Best way to minimize the ubuntu base image

I am trying to minimize the ubuntu base image for networking tools.

Till now I have been looking at the whole file system to remove the files that are not needed.
This is a very tedious process and I am not sure if I will get the results or not.

Can anyone suggest a better path to go on about this.

Source: StackOverflow