ALTER DATABASE yourDBName SET PARTNER OFF
will break the mirror. You can run this command on either the ServerA or ServerB (Principal or Mirror).
You'll then be left with the Mirror database in recovery mode so if you want to bring this back online use:
RESTORE DATABASE yourDBName WITH RECOVERY
Hope that helps.
Julia