Ad Hoc Trends - Delete Public Chart

Hi Everyone,

Looking for an example where someone has added a button to call a delete query to remove a saved a public chart in the AdHoc trends template. I’m assuming I’m not missing another way to go about this?

Thanks

Hi @Jayden

	if dbType == 'POSTGRES':
		return '''
		DELETE 
		FROM 
			ad_hoc_trends_config
		WHERE 
			id = ?'''

This is the query i use for postgres where id is de id of your trend

Regards

Thanks Amaud,

Much appreciated