Aslam u Alaikum ,
What steps you followed to delete the categories and posts? Which WP theme you are using?
Please follow these steps,
1. Go to Posts> Categories and delete all categories.
2. Go to Posts > All Posts and select all posts to delete.
Other option is CPanel. Goto mysql database and delete your posts and data from there.