This command deletes an OS profile.
An OS profile can be deleted even if it is currently deployed on a provisionable server. However, you cannot delete a profile that is currently in use, which means it is actively being deployed on a server. The show osprofile command displays if an OS profile is in use or not.
Delete an OS profile:
delete osprofile osprofile
osprofile – The name of an OS profile to delete.