Opt-Out Cookie based on User Preferences

In order to abide by the Cookie Law, I am putting in place a cookie consent banner in our application.

According to user preferences, is there a way to disable the Dynatrace Cookie?

I read the documentation on opting out using dtrum.disable(), however this only stops data collecting. But the cookies were still saved.

The identical question was posted a few years ago, and there were no options at the time. Is it possible to disable the storage of cookies in the new version? If yes, how?

Regards,
Mahan

From the information I have found, cookies are being deleted: https://community.dynatrace.com/t5/Real-User-Monitoring/Does-dtrum-disable-clear-all-dynatrace-cookies/m-p/119953