/**
* Delete URL data from DB and cache
*
* @param string $url URL
* @return bool
*/
public function delete($url)
{
$this->cache->invalidate(sha1($url));
$dbprefix = elgg_get_config('dbprefix');
$result = delete_data("\n\t\t\t\tDELETE FROM {$dbprefix}scraper_data\n\t\t\t\tWHERE url = :url\n\t\t", [':url' => (string) $url]);
return (bool) $result;
}