This functionality was in the old cookbooks setup swap recipe.  If the size was set to 0 and there was a swap file it would be removed.  This is also part of the community cookbook.  It has a remove swap recipe.  The only use case I can think of is for a force reset - return the instance to the original state.  Since this is in both our cookbook and the community cookbook I'm guessing there are other valid use cases.