# IRPCPropertyDefsAdmin.RemoveObjectClass

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Property definition and class administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCPropertyDefsAdmin/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCPropertyDefsAdmin/RemoveObjectClass/

Badges: `Administration API / specialized` `admin` `session`

Deletes a class.

- **Service:** [Property definition and class administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCPropertyDefsAdmin/index.md) `MFiles.IRPCPropertyDefsAdmin`
- **gRPC method:** `/MFiles.IRPCPropertyDefsAdmin/RemoveObjectClass`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/remove-object-class`
- **Request:** [`RemoveObjectClassRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCPropertyDefsAdmin/RemoveObjectClass/index.md#request)
- **Response:** [`RemoveObjectClassResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCPropertyDefsAdmin/RemoveObjectClass/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Requires `change_metadata_structure` and `license_allows_modifications`, and read access to the
  class.
- Built-in classes cannot be removed.
- Objects of the class may exist: the class is then only marked deleted, new objects cannot use
  it, and existing objects keep their property values.
- Removes the class from its class groups. Increments the metadata structure version.

<a id="request"></a>

## Request: RemoveObjectClassRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `class_id` | `int32` | The ID of the object class to remove. |

<a id="response"></a>

## Response: RemoveObjectClassResponse

No fields.
