1<?php
2define('DOKU_INC', realpath(dirname(__FILE__)) . '/../../../../');
3require_once(DOKU_INC.'inc/init.php');
4require_once(DOKU_INC.'inc/io.php');
5
6$cname = $_REQUEST['draft_id'];
7$cname = urldecode($cname);
8
9if(file_exists($cname)) {
10   if(unlink($cname)){
11     echo  "$cname unlinked";
12     exit;
13   }
14   else {
15     echo "unlink failed";
16   }
17
18}
19
20echo "done";
21
22