We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d0eee37 commit 44745c9Copy full SHA for 44745c9
1 file changed
ciscosparkapi/api/people.py
@@ -302,6 +302,24 @@ def get(self, personId):
302
# Return a Person object created from the response JSON data
303
return Person(json_obj)
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
323
def me(self):
324
"""Get the person details of the account accessing the API 'me'.
325
0 commit comments