Instead of using Pulse.Config, use Pulse.API to update the configuration…
…because using Pulse.Config doesn’t update Pulse’s index. For deletion, this is resulting in Pulse recreated the removed folders even though they are not in the config.xml.
Assuming that updating it through the config will trigger an index update.