We show that two superconducting qubits interacting via a fixed transversal coupling can be decoupled by appropriately-designed microwave field excitations applied to each qubit. This technique is useful for removing the effects of spurious interactions in a quantum processor. We also simulate the case of a qubit coupled to a two-level system (TLS) present in the insulating layer of the Josephson junction of the qubit. Finally, we discuss the qubit-TLS problem in the context of dispersive measurements, where the qubit is coupled to a resonator.