Why are there so few works of Kafka left even though he was a prolific writer?

Though Kafka was a prolific writer he struggled with low self-esteem and destroyed 90% of his work. Rest of his works were lost or were not published. In his will Kafka instructed that his unfinished novels be destroyed, luckily those instructions were ignored and we are able to read his novels like The Trial and The Castle.