$imagick = new \Imagick(); $imagick->readImage('example.jpg'); $imagick->destroy();
use Intervention\Image\ImageManagerStatic as Image; Image::make('public/image.png')->destroy();This code uses `ImageManagerStatic` class to create an image object and then the `destroy` method is called to delete the image. In both examples, the `destroy` method is used to delete the image. The specific library used depends on the developer's preference and the requirements of the project.