API deletion of maintenance periods, more bulkifying