TwistPHP Documentation

delete

File path: dist/twist/Core/Utilities/Asset.utility.php
Namespace: Twist\Core\Utilities
Extends: Base

deleteDelete an asset from the system, this will remove both the database record and the file (if there is one)

Parameters

Name Type Description
$intAssetIDintegern/a

Return Values

void — No return information has been documented for this function.

Example

<?php
//Set the variables for the example
$intAssetID 124;

//Call the function delete with the example vars
Twist::Asset() -> delete($intAssetID);