reduced number of nested callbacks in removePost method in myData.controller