Last modified by Xiaoling on 2023/11/21 09:50

From version 10.1
edited by Kilight Cao
on 2023/11/06 09:48
Change comment: Uploaded new attachment "image-20231106094833-2.png", version {1}
To version 22.1
edited by Kilight Cao
on 2023/11/20 17:06
Change comment: There is no comment for this version

Summary

Details

Page properties
Title
... ... @@ -1,1 +1,1 @@
1 -Delete devices from Build-in The Things Network
1 +Delete devices from Build-in Server
Content
... ... @@ -1,6 +1,18 @@
1 -= 1. Upgrade LPS8v2's TTS to HTTPS =
1 +(% class="wikigeneratedid" %)
2 + **Table of Contents:**
2 2  
4 +{{toc/}}
3 3  
6 +
7 +
8 += 1. Delete devices from built-in TTS =
9 +
10 +
11 +== Method 1: ==
12 +
13 +=== 1.1 Upgrade LPS8v2's TTS to HTTPS ===
14 +
15 +
4 4  (% style="color:blue" %)**1). Download the upgrade script**
5 5  
6 6  wget http:~/~/repo.dragino.com/release/tool/ttnstack/upgrade_to_https.sh && chmod +x upgrade_to_https.sh
... ... @@ -27,10 +27,10 @@
27 27  [[image:1690793877462-490.png]]
28 28  
29 29  
30 -= 2. Install ttn-lw-cli =
42 +=== 2.1 Install ttn-lw-cli ===
31 31  
44 +==== 2.1.1 Download ttn-lw-cli ====
32 32  
33 -(% style="color:blue" %)**1). Download ttn-lw-cli**
34 34  
35 35  [[https:~~/~~/www.thethingsindustries.com/docs/the-things-stack/interact/cli/installing-cli/#installing-using-pre-built-binaries>>url:https://www.thethingsindustries.com/docs/the-things-stack/interact/cli/installing-cli/#installing-using-pre-built-binaries]]
36 36  
... ... @@ -48,14 +48,84 @@
48 48  
49 49  Manually modify the ttn-lw-cli configuration file .ttn-lw-cli.yml:
50 50  
51 -[[image:1690794039057-792.png]]
63 +[[image:image-20231106140006-2.png||height="509" width="823"]]
52 52  
53 53  
54 54  (% style="color:blue" %)**ttn-lw-cli directory tree structure:**
55 55  
56 -[[image:1690794060552-527.png]]
68 +[[image:image-20231106135912-1.png]]
57 57  
58 58  
59 -(% style="color:blue" %)**Delete End Devices.**
71 +==== 2.1.2 Delete End node ====
60 60  
73 +
61 61  [[image:1690794073644-821.png]]
75 +
76 +
77 +== Method 2:Delete devices through the API ==
78 +
79 +
80 +=== 1.1 Generate API Keys ===
81 +
82 +[[image:image-20231120163713-1.png||height="547" width="1060"]]
83 +
84 +[[image:image-20231120163955-2.png||height="545" width="1056"]]
85 +
86 +[[image:image-20231120164209-3.png||height="546" width="1058"]]
87 +
88 +
89 +=== 1.2 Delete End node ===
90 +
91 +[[image:image-20231120164944-4.png||height="550" width="1067"]]
92 +
93 +For example, to delete the devices eui-5ce8824bad98531d in the applications 11111:
94 +
95 +Users need to access the Linux console of the gateway through SSH, and then enter the following command
96 +
97 +(% class="box infomessage" %)
98 +(((
99 +curl ~-~-location \
100 + ~-~-header "Authorization: Bearer NNSXS.XXXXXXXXX" \
101 + ~-~-request DELETE \
102 + 'https:~/~/built-in_ttn_IP_Address:8080/api/v3/applications/{Application_ID}/devices/{device_id}'
103 +)))
104 +
105 +[[image:image-20231120165357-5.png]]
106 +
107 +When the command succeeds, the output {} is displayed.
108 +
109 += 2. Delete devices from built-in ChirpStack =
110 +
111 +
112 +Users need to access the Linux console of the gateway through SSH, and then enter the following command to clear the built-in ChirpStack:
113 +
114 +(% class="box infomessage" %)
115 +(((
116 +**cd /usr/local/chirpstack/**
117 +
118 +**systemctl stop chirpstack**
119 +
120 +**docker-compose down**
121 +)))
122 +
123 +[[image:image-20231106094833-2.png]]
124 +
125 +
126 +(% class="box infomessage" %)
127 +(((
128 +**docker volume rm chirpstack_postgresqldata**
129 +
130 +**docker volume rm chirpstack-redisdata**
131 +)))
132 +
133 +[[image:image-20231106095035-3.png]]
134 +
135 +
136 +**Re-run ChirpStack**
137 +
138 +(% class="box infomessage" %)
139 +(((
140 +**systemctl start chirpstack**
141 +)))
142 +
143 +
image-20231106095035-3.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Kilight
Size
... ... @@ -1,0 +1,1 @@
1 +12.9 KB
Content
image-20231106135912-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +84.9 KB
Content
image-20231106140006-2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +292.6 KB
Content
image-20231120163713-1.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Kilight
Size
... ... @@ -1,0 +1,1 @@
1 +90.6 KB
Content
image-20231120163955-2.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Kilight
Size
... ... @@ -1,0 +1,1 @@
1 +102.8 KB
Content
image-20231120164209-3.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Kilight
Size
... ... @@ -1,0 +1,1 @@
1 +129.4 KB
Content
image-20231120164944-4.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Kilight
Size
... ... @@ -1,0 +1,1 @@
1 +117.2 KB
Content
image-20231120165357-5.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Kilight
Size
... ... @@ -1,0 +1,1 @@
1 +21.7 KB
Content