File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -302,6 +302,24 @@ def get(self, personId):
302
302
# Return a Person object created from the response JSON data
303
303
return Person (json_obj )
304
304
305
+ def delete (self , personId ):
306
+ """Remove a person from the system.
307
+
308
+ Only an admin can remove a person.
309
+
310
+ Args:
311
+ personId(string_types): The personID of the person.
312
+
313
+ Raises:
314
+ AssertionError: If the parameter types are incorrect.
315
+ SparkApiError: If the Cisco Spark cloud returns an error.
316
+
317
+ """
318
+ # Process args
319
+ assert isinstance (personId , string_types )
320
+ # API request
321
+ self ._session .delete ('people/' + personId )
322
+
305
323
def me (self ):
306
324
"""Get the person details of the account accessing the API 'me'.
307
325
You can’t perform that action at this time.
0 commit comments