Joomla 3: How to remove a module from a package?

In my package I have a module and a plugin. When I remove the package from Extension Manager, the plugin is removed, but the module remains there. Also, the package entry is deleted from Extension Manager. Then I need to manually remove the module. I get the following messages:

Warning
Attempting to uninstall unknown extension from package. 
This extension may have already been removed earlier.


Message
Uninstalling package was successful.

How can I make sure the module is removed when the package is deleted?

UPDATE:

My package manifest:

<?xml version="1.0" encoding="UTF-8" ?>
<extension type="package" version="3.0">
<name>RR Test One Package</name>
<author>John Doe</author>
<creationDate>November 2013</creationDate>
<packagename>rr_test_one_package</packagename>
<version>1.0</version>
<packager>John Doe</packager>
<description>Lorem ipsum dolor sit amet.</description>
<files folder="packages">
    <file type="module" id="rr_test_one" client="site">mod_rr_test_one.zip</file>
    <file type="plugin" id="rr_test_one" group="content">plg_content_rr_test_one.zip</file>
</files>
</extension>

I have script.phpinside the module and module folders to make some changes to the database records. When a package is uninstalled, the plugin deletes without the uninstall function. It just does not remove the module. Do I need to have another script.phpin the folder packagesalong with the package manifest and have a function uninstallin script.php?

+4
1

id <file> , . mod_ id. , , .

<files folder="packages">
  <file type="module" id="mod_rr_test_one" client="site">mod_rr_test_one.zip</file>
  <file type="plugin" id="rr_test_one" group="content">plg_content_rr_test_one.zip</file>
</files>
+4

All Articles