Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 8 Current »

It may be necessary to delete a query. In order to do so you will need to know the unique QueryID for the query to be deleted.

Updating a query:

 

Code Block Example
//Include the analytics class and the configuration class
$t->runInteraction("Analytics.class.php");
$t->runInteraction("Config.class.php");
 
//Create our query object
$query = new Query(Config::$ANALYTICS_ANALYST);

//QueryID you wish to delete
$queryId = "56de2fr0219b38e071aac27e";
 
//Call the delete query function
$response = $query->delete($queryId);


Explanation:

 

//delete the query, remembering to pass in the queryId for the query to deleted 
$response = $query->delete($queryId);

Delete the query, remembering to pass in the correct QueryID.

$queryId (string)

This is the Query ID of the query you wish to delete. 
Please see List (Read) Saved Queries for more information

Return:

If the delete was successful the response would be TRUE. If you try to delete a query that does not exist, 

Return
//If delete was successful 
 
1
 
//If delete was unsuccessful
 
 

 

 

  • No labels