> For the complete documentation index, see [llms.txt](https://mostafaznv.gitbook.io/larupload/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://mostafaznv.gitbook.io/larupload/standalone-uploader/cover/delete-cover.md).

# Delete Cover

To delete the cover file for an attachment in standalone mode, you can use the `deleteCover` method.

```php
<?php

namespace App\Http\Controllers;

use Mostafaznv\Larupload\Larupload;
use Illuminate\Http\Request;

class UploadController extends Controller
{
    public function store(): RedirectResponse
    {        
        Larupload::init('uploaded/base/path')->deleteCover();

        return redirect()->back();
    }
}
```
