Difference between revisions of "Truxton delete subject"

From truxwiki.com
Jump to navigation Jump to search
(Created page with "This deletes a subject from Truxton. =Syntax= <source lang="C"> void truxton_delete_subject( uint64_t truxton_handle, char const * subject_id ); </source> =Parameters= ==<co...")
 
 
Line 8: Line 8:
 
=Parameters=
 
=Parameters=
 
==<code>truxton_handle</code>==
 
==<code>truxton_handle</code>==
The Truxton instance where this investigation exists.
+
The Truxton instance where this subject exists.
 
This handle comes from calling <code>[[truxton_create]]()</code>.
 
This handle comes from calling <code>[[truxton_create]]()</code>.
  

Latest revision as of 16:33, 3 April 2025

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 );
}