app/Http/Controllers/Asset/ImageController.php
public function destroy($id, $imageId)
    {
        $asset = $this->asset->find($id);

        $image = $asset->images()->find($imageId);

        if ($image && $image->delete()) {
            $message = 'Successfully deleted attachment.';

            return redirect()->route('maintenance.assets.images.index', [$asset->id])->withSuccess($message);
        } else {
            $message = 'There was an issue deleting this attachment. Please try again.';

            return redirect()->route('maintenance.assets.images.show', [$asset->id, $image->id])->withErrors($message);
        }
    }
public function destroy($id, $imageId)
    {
        $asset = $this->asset->find($id);

        $image = $asset->images()->find($imageId);

        if ($image && $image->delete()) {
            $message = 'Successfully deleted attachment.';

            return redirect()->route('maintenance.assets.images.index', [$asset->id])->withSuccess($message);
        } else {
            $message = 'There was an issue deleting this attachment. Please try again.';

            return redirect()->route('maintenance.assets.images.show', [$asset->id, $image->id])->withErrors($message);
        }
    }
Processes deleting an attachment record and the file itself.

@param int|string $id
@param int|string $imageId

@return \Illuminate\Http\RedirectResponse