no-resource-delete-operation
@azure-tools/typespec-azure-resource-manager/no-resource-delete-operationCheck for resources that must have a delete operation.
Every ARM resource that provides a create operation must also provide a delete operation.
Impact
Section titled “Impact”- Area: API
A tracked resource without a delete operation violates the RPC contract.
LintDiff Equivalent
Section titled “LintDiff Equivalent”This rule corresponds to the LintDiff rule AllTrackedResourcesMustHaveDelete.
❌ Incorrect
Section titled “❌ Incorrect”@armResourceOperationsinterface EmployeeOperations { createOrUpdate is ArmResourceCreateOrReplaceAsync<Employee>;}❌ Incorrect
Section titled “❌ Incorrect”@armResourceOperationsinterface EmployeeOperations { createOrUpdate is ArmResourceCreateOrReplaceAsync<Employee>; delete is ArmResourceDeleteWithoutOkAsync<Store>; // delete operation for a different resource}✅ Correct
Section titled “✅ Correct”@armResourceOperationsinterface EmployeeOperations { createOrUpdate is ArmResourceCreateOrReplaceAsync<Employee>; delete is ArmResourceDeleteWithoutOkAsync<Employee>;}Suppression
Section titled “Suppression”Suppress per the RPC guidelines; otherwise add a standard delete operation for the resource.