Is it possible to delete a cookie on one site when being redirected to that site from another site? Or is that impossible due to security restrictions?

Site A has a login form that submits to and logs in as Site B. When the user logs out from Site B after using Site A's login form, Site B forwards them back to Site A. Is there any way for Site A to delete a cookie on Site B without access to Site B's backend/code?