@@ -92,19 +92,17 @@ Name | Type | Description | Notes
9292[[ Back to top]] ( # ) [[ Back to API list]] ( ../README.md#documentation-for-api-endpoints ) [[ Back to Model list]] ( ../README.md#documentation-for-models ) [[ Back to README]] ( ../README.md )
9393
9494# ** delete_website_v1**
95- > CommonSuccessEmptyResource delete_website_v1(domain, hosting_v1_websites_delete_website_request )
95+ > CommonSuccessEmptyResource delete_website_v1(domain)
9696
9797Delete website
9898
99- Permanently deletes a website and all of its data. This action is destructive
100- and cannot be undone. Always ask the user for explicit confirmation before
101- calling this endpoint .
99+ This endpoint permanently removes a website and all of its data. This action
100+ cannot be undone. Before calling it, make sure the user understands the
101+ consequences and explicitly confirms that they want to proceed .
102102
103103All website files, databases and related configuration will be removed.
104104The hosting plan itself is kept, so a new website can be created on it afterwards.
105105
106- The confirm field must be boolean true, otherwise the request is rejected.
107-
108106Supported websites: main and addon domain websites on web hosting plans, and
109107Website Builder websites. Parked domains and subdomains cannot be deleted with
110108this endpoint. The domain must be the exact website domain, not a preview
@@ -123,7 +121,6 @@ complete. The response returns before the removal finishes.
123121``` python
124122import hostinger_api
125123from hostinger_api.models.common_success_empty_resource import CommonSuccessEmptyResource
126- from hostinger_api.models.hosting_v1_websites_delete_website_request import HostingV1WebsitesDeleteWebsiteRequest
127124from hostinger_api.rest import ApiException
128125from pprint import pprint
129126
@@ -138,11 +135,10 @@ with hostinger_api.ApiClient(configuration) as api_client:
138135 # Create an instance of the API class
139136 api_instance = hostinger_api.HostingWebsitesApi(api_client)
140137 domain = ' mydomain.tld' # str | Domain name
141- hosting_v1_websites_delete_website_request = hostinger_api.HostingV1WebsitesDeleteWebsiteRequest() # HostingV1WebsitesDeleteWebsiteRequest |
142138
143139 try :
144140 # Delete website
145- api_response = api_instance.delete_website_v1(domain, hosting_v1_websites_delete_website_request )
141+ api_response = api_instance.delete_website_v1(domain)
146142 print (" The response of HostingWebsitesApi->delete_website_v1:\n " )
147143 pprint(api_response)
148144 except Exception as e:
@@ -157,7 +153,6 @@ with hostinger_api.ApiClient(configuration) as api_client:
157153Name | Type | Description | Notes
158154------------- | ------------- | ------------- | -------------
159155 ** domain** | ** str** | Domain name |
160- ** hosting_v1_websites_delete_website_request** | [ ** HostingV1WebsitesDeleteWebsiteRequest** ] ( HostingV1WebsitesDeleteWebsiteRequest.md ) | |
161156
162157### Return type
163158
@@ -169,7 +164,7 @@ Name | Type | Description | Notes
169164
170165### HTTP request headers
171166
172- - ** Content-Type** : application/json
167+ - ** Content-Type** : Not defined
173168 - ** Accept** : application/json
174169
175170### HTTP response details
0 commit comments