Subjects - Delete
  • 22 Dec 2023
  • 1 Minute to read
  • Dark
    Light

Subjects - Delete

  • Dark
    Light

Article summary

Delete Subjects

Completely removes a subject from the system.

Subject Deletion

Note that a subject still 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


cc = cogniac.CogniacConnection(username="test@cogniac.co", 
                               password="myPassword", 
                               tenant_id="63QhzFLc9tg4")

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


Was this article helpful?