At the time of cessation of activity, you must withdraw from both the Treasury and Social Security.
The cessation does not imply any cost. You can use the same model as in the tax register, form 036.
Some people who do not invoice every month, only register in the Social Security the month they will be charged because the payment is monthly.
Information prepared by Enrique Bravo.