Function __global->delete_download
Definitions
sources/downloads2.php
- Delete a download.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $id | AUTO_LINK | No | No | required parameter | N/A | N/A | The ID of the download to delete |
| $leave | boolean | No | No | False | N/A | N/A | Whether to leave the actual file behind |
Preview
Code (PHP)
/**
* Delete a download.
*
* @param AUTO_LINK $id The ID of the download to delete
* @param boolean $leave Whether to leave the actual file behind
*/
function delete_download(int $id, bool $leave = false)
* Delete a download.
*
* @param AUTO_LINK $id The ID of the download to delete
* @param boolean $leave Whether to leave the actual file behind
*/
function delete_download(int $id, bool $leave = false)

