Multiple remove on Restangular

Author: endriyasCreated Aug 23, 2018Updated Aug 23, 2018

i have model called taskToStaff contains ID, taskID, StaffID

I need to delete documents from taskToStaff model where tskID is equal to the ID that i given.

curruntlly i test this but does not work.

this.TaskToStaffsDataSource = Restangular.service("taskToStaffs"); this.TaskToStaffsDataSource.one(taskID).removeAll().then(() =>{});