Can you run a laptop without a battery?
If you find out which battery connection should be occupied and how, then it works.
How would that work? I wanted to take it off and use it with the power supply
After your question you are not a maker, I would advise against it.
If the battery is not removable (so just release it), you will have to open the device. If the manufacturer was friendly, operation without a battery is possible.