PDIO-391 Check if table exists before delete