Function Resource_fs_base->resource_delete

Definitions

sources/resource_fs_base_class.php

  • Deletes the resource. Wraps file_delete/folder_delete.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: bool

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$resource_type ID_TEXT No No required parameter N/A N/A Resource type
$filename ID_TEXT No No required parameter N/A N/A The filename
$path string No No required parameter N/A N/A The path (blank: root / not applicable)

Returns

  • Success status
  • Type: boolean
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Deletes the resource. Wraps file_delete/folder_delete.
 *
 * @param  ID_TEXT $resource_type Resource type
 * @param  ID_TEXT $filename The filename
 * @param  string $path The path (blank: root / not applicable)
 * @return boolean Success status
 */

public function resource_delete(string $resource_type, string $filename, string $path) : bool