> Portal Navigation: > > - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version. > - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages). > - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`). > - Top-level index of all portals: https://dev.wix.com/docs/llms.txt > - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt # DeleteLikeByFqdnAndEntityId # Package: blog # Namespace: LikeService # Method link: https://dev.wix.com/docs/api-reference/business-solutions/blog/likes/delete-like-by-fqdn-and-entity-id.md ## Permission Scopes: Manage Blog: SCOPE.DC-BLOG.MANAGE-BLOG ## Introduction Deletes a site visitors' or members' like by blog content FQDN and entity ID. >**Note:** >This method requires [visitor or member authentication](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/make-api-calls-with-oauth.md). --- ## REST API ### Schema ``` Method: deleteLikeByFqdnAndEntityId Description: Deletes a site visitors' or members' like by blog content FQDN and entity GUID. >**Note:** >This method requires [visitor or member authentication](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/make-api-calls-with-oauth.md). URL: https://www.wixapis.com/blog/v1/likes/fqdn/{fqdn}/entity-id/{entityId} Method: DELETE # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: fqdn, entityId Method parameters: param name: entityId | type: none | required: true param name: fqdn | type: none | required: true Return type: DeleteLikeByFqdnAndEntityIdResponse EMPTY-OBJECT {} ``` ### Examples ### Delete a like by entity reference and FQDN ```curl curl -X DELETE \ 'https://www.wixapis.com/blog/v1/likes/fqdn/wix.blog.v3.post/entity-id/12345678-1234-1234-1234-123456789012' \ -H 'Authorization: ' ``` --- ## JavaScript SDK ### Schema ``` Method: wixClientAdmin.blog.LikeService.deleteLikeByFqdnAndEntityId(identifiers) Description: Deletes a site visitors' or members' like by blog content FQDN and entity GUID. >**Note:** >This method requires [visitor or member authentication](https://dev.wix.com/docs/go-headless/coding/rest-api/visitors-and-members/make-api-calls-with-oauth.md). # Note: If the parameter `a.b` is listed under required parameters, `b` is only required if `a` is also present. Required parameters: identifiers.fqdn, identifiers.entityId, identifiers Method parameters: param name: identifiers | type: DeleteLikeByFqdnAndEntityIdIdentifiers none | required: true - name: fqdn | type: string | description: Fully qualified domain name that identifies the type of blog content being liked. For example, `wix.blog.v3.post` for blog posts. | required: true - name: entityId | type: string | description: GUID of the specific blog content being liked. | required: true Return type: PROMISE EMPTY-OBJECT {} ``` ### Examples ### deleteLikeByFqdnAndEntityId ```javascript import { likes } from '@wix/blog'; async function deleteLikeByFqdnAndEntityId(identifiers) { const response = await likes.deleteLikeByFqdnAndEntityId(identifiers); }; ``` ### deleteLikeByFqdnAndEntityId (with elevated permissions) ```javascript import { likes } from '@wix/blog'; import { auth } from '@wix/essentials'; async function myDeleteLikeByFqdnAndEntityIdMethod(identifiers) { const elevatedDeleteLikeByFqdnAndEntityId = auth.elevate(likes.deleteLikeByFqdnAndEntityId); const response = await elevatedDeleteLikeByFqdnAndEntityId(identifiers); } ``` ### deleteLikeByFqdnAndEntityId (self-hosted) Self-hosted SDK calls require you to [create a client](https://dev.wix.com/docs/sdk/articles/work-with-the-sdk/about-the-wix-client.md). ```javascript import { createClient } from '@wix/sdk'; import { likes } from '@wix/blog'; // Import the auth strategy for the relevant access type // Import the relevant host module if needed const myWixClient = createClient ({ modules: { likes }, // Include the auth strategy and host as relevant }); async function deleteLikeByFqdnAndEntityId(identifiers) { const response = await myWixClient.likes.deleteLikeByFqdnAndEntityId(identifiers); }; ``` ---