Truxton delete subject
Jump to navigation
Jump to search
This deletes a subject from Truxton.
Syntax
void truxton_delete_subject( uint64_t truxton_handle, char const * subject_id );
Parameters
truxton_handle
The Truxton instance where this subject exists.
This handle comes from calling truxton_create().
subject_id
The globally unique identifier of the subject to delete.
Remarks
This will delete the subject and any references to it from the following tables:
[Relation][Suspect]
Sample
void destroy_gang( void )
{
char const * John_Whorfin = "AAFD2A76-9E75-4A66-AFA8-B708B6739382";
char const * John_Bigboote = "DBF57E64-C9E5-4159-A1AA-0F2D58AB600A";
char const * John_Parker = "081E9C6E-8F0B-4C0B-A1AF-BA6F2C37BA64";
uint64_t truxton = truxton_create();
truxton_delete_subject( truxton, John_Whorfin );
truxton_delete_subject( truxton, John_Bigboote );
truxton_delete_subject( truxton, John_Parker );
truxton_destroy( truxton );
}