Hi, do I declare and instance of DataObject correctly? I tried this to delete a first found record but did not work,
$product = Product; or $product = Product;::create();
$product->get();
$product->delete();echo $product->ID;
$product->write();
I think the error is on delete.