Skip to main content

Purging a file

Sending a HTTP DELETE to the Atom representation of a file will purge a file completely. Note that, unlike in the normal Sitebuilder interface, a file does not need to be marked as deleted in order to purge the file completely. We do not need to send any extra content with the DELETE

mat@augustus:~$ curl -i -X DELETE -u cuscav
   "https://sitebuilder.warwick.ac.uk/sitebuilder2/edit/atom/file.htm?page=/fac/sci/chemistry/exam_results.pdf&type=single"
Enter host password for user 'cuscav':

HTTP/1.1 200 OK
Date: Tue, 22 Mar 2011 11:53:52 GMT
Server: Penny
Content-Length: 0
Vary: User-Agent
Content-Type: text/html  

No content is returned in the response body for a DELETE.