Progress will discontinue Telerik Platform on May 10th, 2018. Learn more

Deleting Files

Deleting Files

The Backend Services Android SDK provides methods for deleting single and multiple files based on an ID or a filter expression.

Single file

To delete a file by Id, you have to execute the following code snippet:

public void deleteFileById(EverliveApp app, UUID fileId) {
    app.workWith().files().deleteById(fileId).executeAsync();
}

Multiple files

To delete multiple files you have to execute following code snippet:

public void deleteMultipleFiles(EverliveApp app, Date date) {
    app.workWith().files().delete().
    where(new ValueCondition("CreatedAt", date, ValueConditionOperator.GreaterThan).
    executeAsync();
}

Be aware that using delete method without a filtering condition will delete all files!

Start a free trial Request a demo
Contact us: +1-888-365-2779
sales@telerik.com
Copyright © 2016-2017, Progress Software Corporation and/or its subsidiaries or affiliates. All rights reserved.