Table Partitioning: Exploring Partition Level Operations

ALTER INDEX [PK_indexname]
ON [tablename]
REBUILD PARTITION = ALL
WITH (ONLINE= ON);
ALTER INDEX [PK_indexname]
ON [tablename]
REBUILD PARTITION = 1
WITH (ONLINE= ON);