There are a few ways to delete a bin location within L2L Spares. You've likely seen that you can manually delete the location in the UI and/or via API, but maybe you are more familiar with the import templates and require a way to delete bin locations in bulk.
First, you should export all spares (not just active parts) to save as a backup if needed. It is suggested to make a copy of this to keep an original backup and use the copy for the updates/changes.
You need to include all the parts in the import template that you want to keep the locations for. You'll also want to make sure there isn't a quantity associated with the bin before deletion.
If a location isn't included in the import, it will be removed. So, instead of importing only some parts and updating some parts, you need to include all parts that you want to keep their locations unchanged, you may remove the parts/locations from that import template that you want the locations removed.
Please note that Spares Quantity Sync will remove all locations not contained in the uploaded file if the External Master field on the part is either True, Null or not mapped.
You may select the box to Remove all Locations if the Location is not contained in the uploaded file. This overrides the External Master settings described above.
This is useful when bin locations are no longer needed for that part number.
You must import at least one row of data successfully for this to function as expected.
If you are looking to remove all bin locations and utilize the inbound_sync API to update/clear the locations, you may perform the spares quantity sync import for one part that you'd like to keep the location for and the rest will be removed. After this, you may perform the updates using the inbound_sync API and monitor the updates for confirmation.