public function deleteStudy(UserService $user, $user_id, $study_id) { try { $response = $user->deleteUserStudy($study_id); if ($response) { return $this->json_response->success($response); } return $this->json_response->error($response); } catch (Exception $e) { return $this->json_response->error(['error' => $e->getMessage()]); } }