Monday, November 08, 2010 at 12:01 AM.
system.verbs.apps.s3.deleteObject
on deleteObject (relpath) {
<<Changes
<<6/6/09; 5:25:36 PM by DW
<<Make sure the path begins with a /.
<<4/11/06; 3:12:27 PM by DW
<<Created.
s3.init ();
if not (relpath beginswith "/") {
relpath = "/" + relpath};
s3.httpClient ("DELETE", relpath)}
<<bundle //test code
<<local (i)
<<for i = 1 to 100
<<deleteObject ("/scriptingImages/test" + i + ".txt")
This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.