Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 429 Bytes

delete.md

File metadata and controls

25 lines (20 loc) · 429 Bytes

Delete

There are two ways to delete files using Larupload:

  • Delete by detach function
  • Delete by assigning LARUPLOAD_NULL to file property

{% tabs %} {% tab title="Detach" %}

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

$upload->save();

{% endtab %}

{% tab title="LARUPLOAD_NULL" %}

$upload->file = LARUPLOAD_NULL;
$upload->save();

{% endtab %} {% endtabs %}