Open Settings → AI data sharing. Each of the three permissions — Song prompts, Photos, Voice recordings — has its own switch showing whether it's currently on.
Turn one off and confirm, and it's revoked immediately.
The next time you use a feature that needs it, you'll be asked again from scratch. Turning a permission off doesn't delete creations you've already made — for that, see How do I delete my account and my data?