Truxton delete investigation by name

From truxwiki.com
Jump to navigation Jump to search

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