This API will soon be deprecated. Please use another API.

    Delete Folders

    Deletes a specified folder from the mailbox.

    API Type

    Service API

    Request URL

    https://apis.worksmobile.com/{API ID}/mail/removeFolder

    HTTP Method

    GET/POST(Content-Type: application/x-www-form-urlencoded; charset=UTF-8)

    Request

    Parameter Type Required Description
    folderSN String Y A serial number of a folder to be deleted

    Request Example

    https://apis.worksmobile.com/{API ID}/mail/removeFolder
    

    Response

    It indicates whether the request was successful or not, and returns the "data" value having an empty string.

    Property Type Required Description
    message String Y Indicates whether successful or not.
    ● Success: "success"
    ● Failure: Error code
    code String Y Code that indicates whether successful or not.
    ● Success: "000"
    ● Failure: Any integer excluding "000"
    data integer N null

    Response Example

    {"message":"success","data":"","code":"000"}
    

    It returns an error code and message when the API call fails (refer to Response Common).

    Error Code Error Message Description
    999 Unknown error Internal error