President Cyril Ramaphosa has accepted the resignation of Malusi Gigaba from his position as the minister of home affairs.