# Delete a file.

1. <?php
2. # Delete a file.
4. if (!defined('PHORUM')) return;
6. require_once("./include/api/base.php");
7. require_once("./include/api/file_storage.php");
9. if (phorum_api_file_check_delete_access($file_id)) {
10. phorum_api_file_delete($file_id);
11. } else {
12. die("Permission denied to delete file $file_id");
13. }
14. ?>

Documentation generated on Wed, 17 Mar 2010 01:45:25 -0500 by phpDocumentor 1.4.1