I think you’re asking how to remove the crank from the bottom bracket—part of which is the axle that connects the two crank arms. Without knowing the make/ model/ year (or better, a picture) of your crankset, we probably can’t help you. Some cranksets require special tools in order to remove them.