remove Link From Collection

@Modifying(clearAutomatically = true )
@Query(value = ""DELETE FROM " + COLLECTIONS_LINKS_TABLE + _WHERE_ + COLLECTION_IDENTIFIER_KEY + "=:" + COLLECTION_IDENTIFIER_KEY + " AND " + LINK_IDENTIFIER_KEY + "=:" + LINK_IDENTIFIER_KEY", nativeQuery = true )
abstract fun removeLinkFromCollection(@Param(value = "collection_id") collectionId: String, @Param(value = "link_id") linkId: String)

Method to execute the query remove a link from a collection

Parameters

collectionId

The identifier of the collection

linkId

The identifier of the link