You cannot delete a storage pool that has any volumes still associated with it.
Remove the associated volumes and retry the command, or use the -force flag:
rmmdiskgrp -force storage_pool
where storage_pool is either the name or the ID of a storage pool.