Was this page helpful?

Delete a File

    Description of the code sample

    The following command removes an attachment (file ID = 1). The file is placed in the archive where it can be restored or permanently deleted.

    Sample Code

    curl -u username:password -X DELETE -i http://mindtouch.address/@api/deki/files/1

    Implementation notes 

    curl flags

    -u
    Provides external user authentication.
    -X
    Specifies the HTTP request method.
    -i
    Outputs the HTTP response headers. Useful for debugging.
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by