I know that I can drop something: I accidentally make it fall to the ground.
But I want to know if I can use it in other ways like: I was trying hard to finish the task, but I dropped it. Meaning: I stopped trying to finish it.
If the second sentence is not correct, are there any other definitions of "to drop"?