Cookies issue

by api, you mean tracking pixel or just the api?
because i am facing the same issue and it merges the contacts
Link to a similar question
what I. want is that I have a normal website where i login and logout and it’s made in javascript.
so what i do is everytime someone signs up, i use this function call

mt(“send”, “pageview”, {…properties})

and it saves a cookie by the name mtc_id and mautic_device_id.
so, suppose i want to logout and sign in from some other id, it will pick the previous cookie and update the previous contact.
so, i want to delete the cookie from my javascript website, but i am unable to do that because that cookie is set by my server say “panel.bumbl.it”
so, is there any functionn that removes that cookie? which come from my server.