h6. [[OS_DynamicArea]] h6(. » OS_DynamicArea 1 h2. OS_DynamicArea 1 h5. (SWI &66) |_<^{width:3em}. Entry | | |<^. R0 |<^. 1 (reason code) | |<^. R1 |<^. Area number | |_<^{width:3em}. Exit | | |<^. R0 |<^. Preserved | |<^. R1 |<^. Preserved | h4. Use The purpose of this call is to remove a previously created dynamic area. h4. Notes Before the area is removed, it attempts to shrink it to zero size by calling [[OS_ChangeDynamicArea]] internally. If OS_ChangeDynamicArea returns an error, then the area will be grown back to its original size using OS_ChangeDynamicArea, and this call will return with an error. If OS_ChangeDynamicArea successfully reduced the area to zero size, then it will be removed. Once the area has been removed [[Service_DynamicAreaRemove]] is issued to inform the rest of the system about this change. An error is returned if the area was not removed for any reason. [[Sparse Dynamic Areas|Sparse]] areas shall be released via [[OS_DynamicArea 10]] before removal. If the attempt fails, the area is not removed, but no attempt is made to restore the mapping distribution as before the removal. h4. See also * [[OS_ChangeDynamicArea]] * [[OS_DynamicArea]] * [[OS_DynamicArea 10]] * [[Sparse Dynamic Areas]]