Batteries are built to last and can be recharged 600 or more times. Even if you’re an avid cyclist, you’d still get several years out of your battery until you have to replace it. Make sure to follow e-bike’s manual instructions for proper attachment and removal of the battery. They can be an expensive replacement if damaged.
If you plan to store your battery for a longer period of time, for example the winter period, it’s better to keep your battery 30-60% charged. Lower temperatures can also drain your battery, so it’s preferable to store it inside.