MCPcopy Create free account
hub / github.com/GetStream/stream-js / delete

Method delete

src/personalization.ts:82–89  ·  view source on GitHub ↗

* Delete metadata or activities * * @method delete * @memberof Personalization.prototype * @param {object} resource - personalized resource endpoint i.e "follow_recommendations" * @param {object} options - Additional options * @return {Promise<PersonalizationAPIResponse<StreamFeedG

(resource: string, options: Record<string, string> = {})

Source from the content-addressed store, hash-verified

80 * @example client.personalization.delete('follow_recommendations', {foo: 'bar', baz: 'qux'})
81 */
82 delete(resource: string, options: Record<string, string> = {}) {
83 return this.client.delete<PersonalizationAPIResponse<StreamFeedGenerics>>({
84 url: `${resource}/`,
85 serviceName: 'personalization',
86 qs: options,
87 token: this.client.getPersonalizationToken(),
88 });
89 }
90}

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected