From 5f227b874b865e5acd6c89c585097897a33b1d4e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Thu, 13 Dec 2018 22:04:46 -0800 Subject: [PATCH] Updated Filer Server API (markdown) --- Filer-Server-API.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Filer-Server-API.md b/Filer-Server-API.md index dff5209..853ef28 100644 --- a/Filer-Server-API.md +++ b/Filer-Server-API.md @@ -61,7 +61,15 @@ curl "http://localhost:8888/javascript/?pretty=y&lastFileName=new_name.js&limit ``` -# Delete a file +# Deletion + +## Delete a file ```bash -> curl -X DELETE "http://localhost:8888/assets/report.js" +> curl -X DELETE http://localhost:8888/path/to/file +``` + +## Delete a folder + +```bash +> curl -X DELETE http://localhost:8888/path/to/dir?recursive=true ```