Adding detach method.

Mirroring the attachRole, should have detach as well.