Upload all files of the old version (3.1.5) of the plugin you deleted to FTP.
Then delete the plugin from Admin CP.
Install version 4.0.5.
i did now it show me the below issue and it's mean
Excuse me! We ran into some problems.
This add-on cannot be uninstalled. This is likely because required files are missing.
100/100 file has been uploaded