Simcy Creative
  • What is Simcify
  • Requirements
  • Getting Started
  • Javascript Functions
    • Simple js Functions
    • Interaction Functions
      • Loader
      • Notifications
      • Credit Card Form
    • Helper Functions
      • Random
      • Cookies
      • Send to server(Ajax)
      • Server Responses
    • HTML helpers
      • Form Processing
      • Send onClick
      • Send onChange
      • Fetch & Display
      • Dropify
      • Switchery
      • Crop Image Input
      • Image Preview
  • PHP Functions
    • Introduction
    • Setup
    • Authentication
      • Login
      • Register
      • Forgot Password
      • Reset Password
    • Configuration
    • Email & SMS
      • SMS
        • Africa's Talking
        • Twilio
      • Email
    • Files Manager
      • Upload
      • Delete
Powered by GitBook
On this page
  • Parameters
  • Usage
  • Response
  1. PHP Functions
  2. Files Manager

Delete

Deleting files from your system /uploads folder is now very simple.

Parameters

All parameters are required.

Parameter

Type

$file

array | string

a string or array with the name of the file to delete.

$folder

string

The name of the folder where the file is stored inside /uploads folder.

Usage

use Simcify\File;

//string
File::delete("johndoe.png", "avatar");

//array
File::delete(
    array("johndoe.png", "david.png", "marry.png"),
    "avatar"
);

Response

Response is always true.

PreviousUpload

Last updated 6 years ago