Some Ryobi tools have batteries that are hard to remove; you'll want to reach beyond the battery latch and pull, all while ...
To remove a stuck DeWalt battery, use the release tab, apply silicone spray, or clear debris around the terminals to free the connection.