public function imageDelete() { $imagePath = _get('imagePath'); if (!$imagePath == NULL) { $imgUpload = new ImageUpload(); $res = $imgUpload->deleteImage($imagePath); if ($res) { echo "1"; } else { echo "-1"; } } }