Subjects - Delete

Delete Subjects

Completely removes a subject from the system.

❗️

Subject Deletion

Note that a subject still being used in an application cannot be deleted.

DELETE /1/subjects/{subject_uid}
Host: https://api.cogniac.io

Example: Delete a Subject

curl -X DELETE https://api.cogniac.io/1/subjects/cat_123 \
-H "Authorization: Bearer abcdefg.hijklmnop.qrstuvwxyz"
import cogniac

# connect to the tenant
cc = cogniac.CogniacConnection(username="[email protected]", 
                               password="myPassword", 
                               tenant_id="63QhzFLc9tg4")

# retrieve the subject to change
subject = cogniac.get_subject("cat_123")
subject.delete()
HTTP 204 Code (with no body)