Skip to main content

sites_unlink_repo

Creates, updates, deletes, gets or lists a sites_unlink_repo resource.

Overview

Namesites_unlink_repo
TypeResource
Idnetlify.site.sites_unlink_repo

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
unlinkSiteRepoexecsite_id[Beta] Unlinks the repo from the site.

This action will also:
- Delete associated deploy keys
- Delete outgoing webhooks for the repo
- Delete the site's build hooks

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
site_idstring

Lifecycle Methods

[Beta] Unlinks the repo from the site.

This action will also:
- Delete associated deploy keys
- Delete outgoing webhooks for the repo
- Delete the site's build hooks

EXEC netlify.site.sites_unlink_repo.unlinkSiteRepo 
@site_id='{{ site_id }}' --required
;