fixed an issue in the rest path for deleting snapshots