@@ -101,17 +101,60 @@ To delete an enterprise application, you need:
101
101
102
102
Delete an enterprise application using [ Graph Explorer] ( https://developer.microsoft.com/graph/graph-explorer ) .
103
103
1 . To get the list of applications in your tenant, run the following query.
104
-
104
+
105
+ # [ HTTP] ( #tab/http )
105
106
``` http
106
- GET /servicePrincipals
107
+ GET https://graph.microsoft.com/v1.0 /servicePrincipals
107
108
```
109
+
110
+ # [ C#] ( #tab/csharp )
111
+ [ !INCLUDE [ sample-code] ( ~/microsoft-graph/api-reference/v1.0/includes/snippets/csharp/list-serviceprincipal-csharp-snippets.md )]
112
+
113
+ # [ JavaScript] ( #tab/javascript )
114
+ [ !INCLUDE [ sample-code] ( ~/microsoft-graph/api-reference/v1.0/includes/snippets/javascript/list-serviceprincipal-javascript-snippets.md )]
115
+
116
+ # [ Java] ( #tab/java )
117
+ [ !INCLUDE [ sample-code] ( ~/microsoft-graph/api-reference/v1.0/includes/snippets/java/list-serviceprincipal-java-snippets.md )]
118
+
119
+ # [ Go] ( #tab/go )
120
+ [ !INCLUDE [ sample-code] ( ~/microsoft-graph/api-reference/v1.0/includes/snippets/go/list-serviceprincipal-go-snippets.md )]
121
+
122
+ # [ PowerShell] ( #tab/powershell )
123
+ [ !INCLUDE [ sample-code] ( ~/microsoft-graph/api-reference/v1.0/includes/snippets/powershell/list-serviceprincipal-powershell-snippets.md )]
124
+
125
+ # [ PHP] ( #tab/php )
126
+ [ !INCLUDE [ sample-code] ( ~/microsoft-graph/api-reference/v1.0/includes/snippets/php/list-serviceprincipal-php-snippets.md )]
127
+
128
+ ---
129
+
108
130
1 . Record the ID of the enterprise app you want to delete.
109
131
1 . Delete the enterprise application.
110
132
133
+ # [ HTTP] ( #tab/http )
111
134
``` http
112
135
DELETE /servicePrincipals/{id}
113
136
```
114
137
138
+ # [ C#] ( #tab/csharp )
139
+ [ !INCLUDE [ sample-code] ( ~/microsoft-graph/api-reference/v1.0/includes/snippets/csharp/delete-serviceprincipal-csharp-snippets.md )]
140
+
141
+ # [ JavaScript] ( #tab/javascript )
142
+ [ !INCLUDE [ sample-code] ( ~/microsoft-graph/api-reference/v1.0/includes/snippets/javascript/delete-serviceprincipal-javascript-snippets.md )]
143
+
144
+ # [ Java] ( #tab/java )
145
+ [ !INCLUDE [ sample-code] ( ~/microsoft-graph/api-reference/v1.0/includes/snippets/java/delete-serviceprincipal-java-snippets.md )]
146
+
147
+ # [ Go] ( #tab/go )
148
+ [ !INCLUDE [ sample-code] ( ~/microsoft-graph/api-reference/v1.0/includes/snippets/go/delete-serviceprincipal-go-snippets.md )]
149
+
150
+ # [ PowerShell] ( #tab/powershell )
151
+ [ !INCLUDE [ sample-code] ( ~/microsoft-graph/api-reference/v1.0/includes/snippets/powershell/delete-serviceprincipal-powershell-snippets.md )]
152
+
153
+ # [ PHP] ( #tab/php )
154
+ [ !INCLUDE [ sample-code] ( ~/microsoft-graph/api-reference/v1.0/includes/snippets/php/delete-serviceprincipal-php-snippets.md )]
155
+
156
+ ---
157
+
115
158
::: zone-end
116
159
117
160
## Next steps
0 commit comments