You are here

public function AFile::delete in N1ED - Visual editor as CKEditor plugin with Bootstrap support 8.2

Deletes file from storage.

File

src/Flmngr/FileUploaderServer/lib/file/AFile.php, line 200

Class

AFile
Abstract file item both for just uploaded and fully commited files. Contains some handy method for accessing files info programmatically.

Namespace

Drupal\n1ed\Flmngr\FileUploaderServer\lib\file

Code

public function delete() {
  if (!unlink($this
    ->getFullPath())) {
    throw new MessageException(Message::createMessage(Message::UNABLE_TO_DELETE_FILE, $this
      ->getName()));
  }
}