Fix for api change in deletePocket.