October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PCOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

Can a PrestaShop Module Uninstall Remove Settings Across Shops?

A PrestaShop module can remove another module’s setting if both use the same key and uninstall cleanup deletes it. Learn how shared storage, multishop scope and safer key naming fit together.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Yes. A PrestaShop module can delete another module’s setting if both use the same configuration key and the uninstall routine removes that key. The settings live in shared Configuration storage, not in a separate table for each module. PrestaShop’s legacy Configuration::deleteByName($key) deletes the matching value for all shops, so a key collision can have consequences beyond the shop where it was noticed.

What “global” means in PrestaShop Configuration

PrestaShop stores keyed settings in a shared configuration table; the table is not partitioned into one configuration table per module. But “shared” does not mean every setting has only one value for the entire installation: Configuration supports shop and shop-group overrides. The current Configuration storage documentation explains that operations generally use the current shop context unless a ShopConstraint specifies another scope. ShopConstraint::allShops() explicitly targets all shops.

As an Amazon Associate I earn from qualifying purchases.

That distinction matters during cleanup. A module may work with values in a particular shop context, while its uninstall code uses a removal operation that reaches every shop. Check both the key and the deletion scope.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How a key collision can affect another module

Configuration values are addressed by key. If two modules use the same key, the storage and deletion APIs do not inherently establish which module “owns” it. An uninstall routine that removes a colliding key can therefore remove a value another module expects.

The legacy static method Configuration::deleteByName(string $key) is documented to delete the key’s value for all shops. The current Configuration service’s remove($key) operation is also documented as removing the value for all shops. The current service supports ShopConstraint for operations where scope should be explicit, but that does not make a non-unique key safe: a broad deletion still needs to target a key the module owns. See the current Configuration documentation and backward-compatibility documentation.

Why the tutorial example is not a safety guarantee

The PrestaShop 9 first-module tutorial demonstrates storing MYMODULE_NAME during installation and deleting that key in the example uninstall method. It also explains that Configuration data is stored in the PREFIX_configuration table and that setting Shop::CONTEXT_ALL applies subsequent changes to all existing stores.

Rank #2
Sale
Dell T7810 “Chia Farming” Workstation/Server, 2X Intel Xeon E5-2690 v4 up to 3.5GHz (28 Cores & 56 Threads Total), 128GB DDR4, Quadro K620 2GB Graphics Card, No HDD, No Operating System (Renewed)
  • Dell T7810 Precision Tower Workstation
  • 2x Intel Xeon E5-2690 v4 14-Core/28 Threads 3.1GHz (3.5GHz Turbo)
  • 128GB Memory DDR4 – Nvidia Quadro K620 2GB
  • Add your own Hard Drives/ SSDs
  • Add your own Operating System

This is an example of cleaning up a module’s own data, not evidence that any uninstall method is safe for arbitrary keys. The relevant question is whether the key is distinctively named and actually belongs to the module being removed.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

How module authors can make cleanup safer

  • Namespace every setting. Give module-owned keys a distinctive module prefix rather than a generic name. PrestaShop’s module good-practices guidance recommends prefixing configuration parameters.
  • Delete only keys the module owns. Review the uninstall method and confirm each key is unique to the module. Avoid removing generic or shared names just because they appear in the module’s code.
  • Make scope intentional. Before an all-shop deletion, decide whether values in every shop should be removed. For newer code, follow the Configuration service guidance and specify a ShopConstraint when an operation’s shop scope should be explicit.
  • Consider the installed version. Choose between the current Configuration service and legacy static API based on the PrestaShop version the module supports, the required shop scope, and the method’s deletion semantics. Both documented deletion methods can remove a key’s value across all shops.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

What to check before uninstalling a module

  1. Inspect the module’s uninstall method and list every configuration key it removes.
  2. Check whether those keys use a distinctive module prefix or could be shared with other code.
  3. Confirm whether the cleanup operation targets the current shop, a specified scope, or all shops.
  4. If the keys are generic or their ownership is unclear, review the module’s source and your shop’s configuration before uninstalling it.

The impact depends on the specific module’s implementation and the keys it deletes. The documentation establishes the shared storage and deletion behavior, but it does not establish that any particular module has a collision; that requires inspecting its uninstall code.

Quick Recap

SaleBestseller No. 2
SaleBestseller No. 3
Dell Precision T5810 Workstation E5-2680 V3 2.5GHz 12-Core 64GB DDR4 Quadro NVS 315 480GB SSD, No Operating System (Renewed)
Dell Precision T5810 Workstation E5-2680 V3 2.5GHz 12-Core 64GB DDR4 Quadro NVS 315 480GB SSD, No Operating System (Renewed)
Intel Xeon Processor: 12-core 2.5GHz processor for high performance computing; DDR4 Memory: 64GB of DDR4 memory for fast data access and multitasking
$358.99
Rank #3
Sale
Dell Precision T5810 Workstation E5-2680 V3 2.5GHz 12-Core 64GB DDR4 Quadro NVS 315 480GB SSD, No Operating System (Renewed)
  • Intel Xeon Processor: 12-core 2.5GHz processor for high performance computing
  • Quadro NVS Graphics: Dedicated NVIDIA graphics card for professional graphics and visualization
  • DDR4 Memory: 64GB of DDR4 memory for fast data access and multitasking
  • SSD Storage: 480GB solid state drive for fast boot and application loading
  • No Operating System: Pre-installed Windows 7 Pro for customization and compatibility

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Windows Errors? Fix Them Before They SpreadFree repair scan
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.