@php $isDone = in_array($this->jobStatus, ['completed', 'failed']); $pct = $this->totalRows > 0 ? min(100, (int) round(($this->processedRows / $this->totalRows) * 100)) : ($this->jobStatus === 'processing' ? 5 : 0); $isRunning = $this->jobId && !$isDone; @endphp {{-- Polling is managed by JS setInterval in the Alpine component below --}}
{{-- Progress state --}} @if($this->jobId) @if($isDone) {{ $this->jobStatus === 'completed' ? 'Delete Complete' : 'Delete Failed' }} @else Deleting Products… @endif @if($isDone) {{ $this->deletedRows }} deleted · {{ $this->skippedRows }} skipped · {{ $this->failedRows }} failed @else Processing in the background — you can leave this page and come back. @endif
@if($this->totalRows > 0) {{ $this->processedRows }} / {{ $this->totalRows }} rows @elseif($this->jobStatus === 'pending') Queued… @else Starting… @endif {{ $pct }}%
@if($this->totalRows > 0 || $isDone)
{{ $this->deletedRows }}
Deleted
{{ $this->skippedRows }}
Skipped
{{ $this->failedRows }}
Failed
@endif @if($this->firstError)
{{ $this->firstError }}
@endif @if($isDone) Delete Another File @endif
@endif {{-- Upload form --}} @if(!$this->jobId) Delete Products by SKU Upload a CSV containing SKUs. Each matching product will be deleted. {{-- Danger callout --}}
This action removes products
Soft-deleted products are moved to the Archive and can be restored. Permanently deleted products cannot be recovered.
{{ $this->form }} Start Delete
{{-- Preview --}}
File Preview Showing SKUs that will be deleted.
Missing required column
Your file is missing the sku column. The import will be rejected.
#

Showing first rows — full file will be processed on delete.

@endif {{-- Instructions --}} Instructions How to prepare your delete file.
Columns
Column Description
required sku The SKU of the product to delete. Any other columns are ignored.
Delete Modes
Soft Delete (default)
Moves products to the Archive. Can be restored at any time.
Permanent Delete
Removes products permanently. Cannot be undone.
{{-- Archive location --}}
Viewing the Archive

Soft-deleted products can be found and restored in:

Inventory → Products → Archive tab

Open Archive
Download CSV Template