And you can only take two bucketfulls out: the two you put in in the first place. (Sometimes the lava does not go away after you take both bucketfulls out, but it is flowing lava and can not be used to do anything other than destroy stuff or make cobblestones.)