How to get rid of FixedJoint2D on drag

I want to make a drag and shoot game where if my RigidBody2D collides with a Collision2D the rigidbody2d sticks onto it with a fixedjont2d. I made the part where rigidbody2d sticks onto the collision2d on contact but I want to get rid of the fixedjoint2d when I drag and shoot my ball so the ball can move again. This is my code so far173934-screen-shot-2021-01-09-at-22437-pm.png

Destroy(joint.gameObject);
or you could disable and reenable as needed to save memory.