Description of changes:
This Pull request adds a logic of deleting and recreating the swap file, if the current swap is larger than the needed size.
This will help wasting extra memory in storage and make it available to the user when modifying instances from larger to smaller type.
Testing: Tested the change internally inside an instance by modifying the file.
Description of changes: This Pull request adds a logic of deleting and recreating the swap file, if the current swap is larger than the needed size. This will help wasting extra memory in storage and make it available to the user when modifying instances from larger to smaller type.
Testing: Tested the change internally inside an instance by modifying the file.