Magic in all its shapes and forms is forbidden [even that which is used to undo magic] unless the matter rests upon a greater benefit such as saving the life of a respected person.
It is not permissible to practice of magic.