blob: e6397b23f8fac86877a50ac6ed3acb672ef07e76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# ErrorTrackingOpenAPI::ProjectsApi
All URIs are relative to *https://localhost/errortracking/api/v1*
| Method | HTTP request | Description |
| ------ | ------------ | ----------- |
| [**delete_project**](ProjectsApi.md#delete_project) | **DELETE** /projects/{id} | Deletes all project related data. Mostly for testing purposes and later for production to clean updeleted projects. |
## delete_project
> delete_project(id)
Deletes all project related data. Mostly for testing purposes and later for production to clean updeleted projects.
### Examples
```ruby
require 'time'
require 'error_tracking_open_api'
api_instance = ErrorTrackingOpenAPI::ProjectsApi.new
id = 56 # Integer | ID of the project
begin
# Deletes all project related data. Mostly for testing purposes and later for production to clean updeleted projects.
api_instance.delete_project(id)
rescue ErrorTrackingOpenAPI::ApiError => e
puts "Error when calling ProjectsApi->delete_project: #{e}"
end
```
#### Using the delete_project_with_http_info variant
This returns an Array which contains the response data (`nil` in this case), status code and headers.
> <Array(nil, Integer, Hash)> delete_project_with_http_info(id)
```ruby
begin
# Deletes all project related data. Mostly for testing purposes and later for production to clean updeleted projects.
data, status_code, headers = api_instance.delete_project_with_http_info(id)
p status_code # => 2xx
p headers # => { ... }
p data # => nil
rescue ErrorTrackingOpenAPI::ApiError => e
puts "Error when calling ProjectsApi->delete_project_with_http_info: #{e}"
end
```
### Parameters
| Name | Type | Description | Notes |
| ---- | ---- | ----------- | ----- |
| **id** | **Integer** | ID of the project | |
### Return type
nil (empty response body)
### Authorization
No authorization required
### HTTP request headers
- **Content-Type**: Not defined
- **Accept**: Not defined
|