Traditionally (for American graduate schools), one had to ask for a release from the first school...which as a practical matter was always granted. That is no longer true. The details are at https://cgsnet.org/resources/for-current-prospective-graduate-students/april-15-resolution.
Note that while changing your mind before April 15th is completely okay, in some circumstances the losing school may be annoyed after April 15th. At the very least, it shouldn't be done lightly.