For the complete documentation index, see llms.txt. This page is also available as Markdown.

Delete

There are two ways to delete files using Larupload:

  • Delete by detach function

  • Delete by assigning false to the file property

  • Delete by assigning LARUPLOAD_NULL to the file property [deprecated]

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

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

This feature was introduced in version 3.0.0.

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

This feature has been deprecated since version 3.0.0. We recommend using the detach method or assigning false instead.

Last updated