You’ll need to call AT&T customer service (800-288-2020) and request cancellation. They may ask you to return equipment (like the modem/router), which you can drop off at an authorized UPS or FedEx store. Make sure to check for early termination fees if you’re under contract.