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?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Eddy AI, facilitating knowledge discovery through conversational intelligence