# Removing Data from a Sheet

Learn how to remove data and cell formatting from a selected cell or range of cells in Spread.NET with ease.

## Content



You can remove both data and cell formatting from a selected cell or range of cells, or remove only the data, leaving the cell formatting intact. For more information about cell formatting, refer to [Understanding How Cell Types Display and Format Data](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-setcelltypes/spwin-datacelltextvalue). You can remove the data using any of the clear methods or by cutting the data using the Clipboard operation.

You can remove the data using any of these clear methods in the default data model:

*   [Clear](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.Model.DefaultSheetDataModel.Clear.html), which clears both data and formulas
*   [ClearFormulas](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.Model.DefaultSheetDataModel.ClearFormulas.html), which clears only formulas
*   [ClearData](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.Model.DefaultSheetDataModel.ClearData.html), which clears data and formula of cells in the range.
*   [ClearCustomNames](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.Model.DefaultSheetDataModel.ClearCustomNames.html), which clears custom names, and [ClearCustomFunctions](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.Model.DefaultSheetDataModel.ClearCustomFunctions.html), which clears custom functions
*   [ClearRange](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.SheetView.ClearRange.html), which clears data, formulas, notes, and formatting from a range of cells

If you use **ClearRange** and set the _dataOnly_ parameter to true, the method clears the formulas, the cell notes, and the text in the cells in that range; in other words, it clears all the information that is in the data model for those cells.

You can remove the contents of a range of cells using this method in the range interface:

*   [IRangeSupport.Clear](/spreadnet/api/latest/online-win/FarPoint.Win.Spread/FarPoint.Win.Spread.Model.IRangeSupport.Clear.html)

## See Also

[Placing and Retrieving Data](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-ssobject-cell/spwin-usedata/spwin-dataaddreturn)

[Moving Data on a Sheet](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-ssobject-cell/spwin-usedata/spwin-datamove)

[Swapping Data on a Sheet](/spreadnet/docs/latest/online-win/overview/spwin-devguide/spwin-ssobject-cell/spwin-usedata/spwin-dataswap)