sites_unlink_repo
Creates, updates, deletes, gets or lists a sites_unlink_repo resource.
Overview
| Name | sites_unlink_repo |
| Type | Resource |
| Id | netlify.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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
unlinkSiteRepo | exec | site_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.
| Name | Datatype | Description |
|---|---|---|
site_id | string |
Lifecycle Methods
- unlinkSiteRepo
[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
;