Difference between revisions of "Truxton delete investigation by name"
Jump to navigation
Jump to search
(Created page with "This deletes an investigation type. =Syntax= <source lang="C"> void truxton_delete_investigation_by_name( uint64_t truxton_handle, char const * investigation_name ); </source...") |
|||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | This deletes an investigation | + | This deletes an investigation from Truxton. |
=Syntax= | =Syntax= | ||
| Line 29: | Line 29: | ||
=Sample= | =Sample= | ||
| − | <source lang="C" highlight=" | + | <source lang="C" highlight="6"> |
void destroy_investigation( void ) | void destroy_investigation( void ) | ||
{ | { | ||
uint64_t truxton = truxton_create(); | uint64_t truxton = truxton_create(); | ||
| + | truxton_delete_media_by_name( "Emilio Lizardo" ); | ||
truxton_delete_investigation_by_name( "Yoyodyne Propulsion Systems" ); | truxton_delete_investigation_by_name( "Yoyodyne Propulsion Systems" ); | ||
| − | |||
| − | |||
| − | |||
truxton_destroy( truxton ); | truxton_destroy( truxton ); | ||
} | } | ||
</source> | </source> | ||
Latest revision as of 16:21, 3 April 2025
This deletes an investigation from Truxton.
Syntax
void truxton_delete_investigation_by_name( uint64_t truxton_handle, char const * investigation_name );
Parameters
truxton_handle
The Truxton instance where this investigation exists.
This handle comes from calling truxton_create().
investigation_name
The name of the investigation to delete. This must be an exact match.
Remarks
This will delete the investigation from the following tables:
[Group][GroupEntry][Investigation][InvestigationEvent][InvestigationMedia][InvestigationSuspect][InvestigatorAction][InvestigatorNote]
No media will be deleted.
Sample
void destroy_investigation( void )
{
uint64_t truxton = truxton_create();
truxton_delete_media_by_name( "Emilio Lizardo" );
truxton_delete_investigation_by_name( "Yoyodyne Propulsion Systems" );
truxton_destroy( truxton );
}