So, this is a weird thing that I just found on 4.3.0:
When I try to delete an image by calling “->delete()” function, it only UNPUBLISHES this image, instead of deleting it as described in the API doc:
Delete this data object.
$this->onBeforeDelete() gets called. Note that in Versioned objects, both Stage and Live will be deleted.
... private static $has_one = [ 'Image' => Image::class]; ... $this->Image()->delete(); // I also tried Image::get()->byID($this->ImageID)->delete(), no dice