# How to remove attached scripts files on deleting add-on?

My addon is constituted by two files scripts. when I push the 'Remove' button , one file stay on the addons folder.

How can I tell blender remove the two python files from the addons directory?

• I'm not sure what you mean... You want blender to delete the python files from the addons directory? Isn't this already what happens? – gandalf3 Feb 13 '15 at 9:59
• @gandalf3 yes, delete the python files from the addons directory. How can I do this ? – Issanou Kamardine IK Feb 13 '15 at 10:12
• I'm voting to close this question as off-topic because is appears to be a misunderstanding of Python modules. If your addon is properly set-up as directory with your script files incl. a __init__.py, a click on Remove should delete the entire folder. – CodeManX Feb 13 '15 at 11:06
• @CoDEmanX ok thanks for this suggestion (I did not know it) – Issanou Kamardine IK Feb 13 '15 at 12:22

In my __init__.py file
if "bpy" in locals():