delete method
Deletes a resource.
Request parameters:
linkingToken - Delete the partner links with the given linking token.
type - Type of the link to be deleted.
Possible string values are:
- "linkUnspecified"
- "channelToStoreLink" : A link that is connecting (or about to connect) a channel with a store on a merchandising platform in order to enable retail commerce capabilities for that channel on YouTube.
externalChannelId - Channel ID to which changes should be applied, for
delegation.
part - Do not use. Required for compatibility.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a commons.ApiRequestError if the API endpoint returned an error.
If the used http.Client completes with an error when making a REST call,
this method will complete with the same error.
Implementation
async.Future<void> delete(
core.String linkingToken,
core.String type, {
core.String? externalChannelId,
core.List<core.String>? part,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
'linkingToken': [linkingToken],
'type': [type],
'externalChannelId': ?externalChannelId == null
? null
: [externalChannelId],
'part': ?part,
'fields': ?$fields == null ? null : [$fields],
};
const url_ = 'youtube/v3/thirdPartyLinks';
await _requester.request(
url_,
'DELETE',
queryParams: queryParams_,
downloadOptions: null,
);
}