> 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/cover/delete-cover.md).

# Delete Cover

You can delete an uploaded/generated cover using the `detach` method. This method removes the specified cover from the associated file and deletes its file from the storage.

```php
$upload = Upload::findOrFail($id);

$upload->file->cover()->detach();
# or (recommended)
$upload->attachment('file')->cover()->detach();

$upload->save();
```
