Open
Close

Delete those marked for deletion in 1s. Automatic deletion of directories and documents

The 1C 8.3 program does not allow you to delete directories and documents in the database immediately, without additional checks. This is done in order to avoid possible errors. For example, if you want to delete an item that is included in a document, you cannot do this.

Let's look at how to delete documents and directories marked for deletion in 1C 8.3. Removal in 1C 8.2 is slightly different, but has a similar algorithm.

Deleting objects in 1C occurs in two stages:

  1. Mark for deletion— setting a sign that a document or directory is planned to be deleted. This element is no different from others; it can also be selected in other objects.
  2. Direct removal— a special procedure during which the system controls whether there are links to a given object in the database. After reference control, 1C makes a decision: whether the object marked for deletion can be deleted or not.

Let's look at these two steps. The instructions are absolutely universal and are suitable for all configurations on 1C 8.3 - Accounting, ZUP, Trade Management, ERP, Small Firm Management and so on.

Setting a mark for deletion in 1C is very simple. Simply select the document or reference book you are interested in from the list and press the “delete” button:

After which you need to confirm your intention. You can now see a special note in the log:

This means that the next time you delete objects through special processing, the system will offer to delete this item of the nomenclature.

How to delete objects marked for deletion in 1C 8.3

The second stage is directly deleting what is already marked in the 1C database. This is done using a special service processing “Deleting marked objects”. It is located on the “Administration” tab:

Get 267 video lessons on 1C for free:

When opening, 1C will give us two options to choose from - automatic deletion of all objects and selective deletion:

Selective can be useful to remove a specific object. For example, select “Automatic mode” and click “Delete”. The deletion of all objects marked for deletion in the system will begin. At the end of the work, the system will display conflict situations—objects that are marked for deletion but are included in accounting:

Here you need to make a choice. For example, we marked “Board 4000x200x20” for deletion, but it is included in the “Operation” and ““ documents. If we don’t need these documents either, we simply mark them for deletion and click on the “Repeat deletion” button. If documents are needed, it is worth thinking about whether this item should not be marked for deletion.

In our example, I decided that I didn’t need these documents in the database either, so I checked them. As a result, the system deleted both the interfering item and the unnecessary document:

That's all, now you know how to delete documents and directories from 1C 8.3.

Automatic deletion of directories and documents

When starting to work in 1C company programs, many people have a question: how to delete unnecessary documents or directory elements? When you click on the "Del" button, the document is only marked for deletion and remains in its place. After reading the article you will know the answer to this question.

Now we will look at how to delete documents in different 1C programs. A common point for all programs is that deletion is only possible in exclusive mode, i.e. No one except you should be working in the program at this moment; it should be closed on all other computers.

Now let's figure out how to remove unnecessary elements in one of the most popular programs at the moment - 1C: Enterprise Accounting 8, version 2.0.

First you need to switch the interface to Full. Go to the menu item

Tools -> Switch interface -> Full

Now select the item

Operations ->

And we agree that the operation may take a long time. Then in the window that opens, click the “Control” button.

The program begins checking whether other documents contain links to the ones you want to delete. For example, the document “Sales of goods and services” is marked for deletion, but there is a link to this document in the invoice. The program will report this and will not delete the document in this case. In order for a document or directory element to be deleted, you must first remove links to it from all other documents.


Green checkmarks in the figure indicate those documents that can be deleted, and red checkmarks indicate those that have links. The bottom part of the form shows which documents use the object marked for deletion.

After clicking the "Delete" button, those items that are marked in green will be deleted.

In order to delete objects in the new version of 1C: Accounting - edition 3.0, you need to go to the "Administration" tab and select the "Delete marked objects" item.


And starting from version 3.0.34, you need to go to the menu

Administration -> Support and Maintenance -> Deleting marked objects

Then you need to choose whether you want to delete all marked objects or just some of them.

In the program 1C: Integrated automation 8 and 1C: Salary and personnel management 8 you also need to switch the interface to “Full” and go to the menu

Operations -> Deleting marked objects

In conclusion, I would also like to note that documents that are marked for deletion but are found in a closed period (a date for prohibiting editing has been set) will not be deleted. Therefore, it is better to do everything in a timely manner, for example, once a month or before starting preparation for reporting.

And if you need more information about working in 1C: Enterprise Accounting 8, then you can get our book onlink .

Today we will talk about deleting documents, as well as any 1C Accounting object data in general (I explain what object data is and how it differs from others in my full 1C Accounting 8 course with examples). Sometimes there are situations ( yes, perhaps not sometimes), when you need to delete a document, but it doesn't want to leave. Let's see why this happens and how to fix it.

Since we are talking about removal, and this operation irrevocable, then be sure to read the article about database backup. Very often this helps to avoid major problems in the company!

How to delete a document in 1C Accounting

First, let's look at how objects are deleted in 1C Accounting 8. First of all, it should be said that not a single object (1C document, directory element, etc.) can be deleted directly, as, for example, we delete unnecessary files in Windows. The process of deleting documents in 1C is a little different.

COMMENT! In some versions of 8.3 it is possible to directly delete elements, including pre-installed ones(!). Never use this, especially since it is impossible to cancel this operation!

To delete a directory element, group or document that you no longer need, you must first mark for deletion. This can be done using the key Delete on the keyboard or the corresponding button on the toolbar. Below is an example from 1C Accounting 8.3:


Before clicking the delete button, make sure that the desired object is selected in the list. During the operation, the program will ask for confirmation of the action.

website_

After confirmation, the object will be marked in the list with a red cross on the left, as in the figure below. By the way, about the cross, but another one, there is another one here on the site.

website_

Note: When you mark a directory group for deletion, all elements, as well as subgroups, will also be marked for deletion. Consequently, If there are many elements in the group marked for deletion, the process may take some time!

You can remove a mark for deletion in the same way as you can mark it.

If you mark it to , its execution is cancelled.

To finally get rid of 1C Accounting database objects marked for deletion, you need to start processing "Deleting marked objects". For 1C Accounting 8.3, to do this, go to the main menu.

website_

And for 1C Accounting 8.2, to delete marked objects you need to go to the menu "Operations / Deleting marked objects." or to the "Administration" section.

website_

Remember: deleted objects cannot be restored. No way.

There was an important part of the article, but without JavaScript it is not visible!

Why is the document not deleted?

However, quite often there are situations when an object marked for deletion cannot be permanently deleted. For some reason the program cannot do this. Why?

In 1C Accounting, a document or directory element cannot be deleted if there is at least one link to it.

Thus, if a document “does not want” to be deleted, it means that it is referenced by other documents in the 1C database. What do you mean by reference? Very simple. This means that in another document There is a field in which this "non-deletable document" is selected as a value. An example for 1C Accounting 8.2 is given below.

website_

If you try to delete the invoice underlined in this document, then a situation with an “eternal” document will arise. There is a separate article about such cases when a document or directory element is not deleted. I recommend checking it out.

Let's sum it up

If you do not delete any document, directory element or anything else that is deleted by setting a deletion mark, then you need to sequentially delete all links to the object being deleted. Only in this case there will be no obstacles to its final removal.

Of course, if you need the objects with which this document is associated, then you can forget about deleting. For example, there was a warehouse. Then he was liquidated. However, it will no longer be possible to remove it from the 1C Accounting database, since it is used in many documents. However, after collapsing the database, you can still get rid of unnecessary documents.

I discuss the features of working with objects marked for deletion, deleting links to objects and other related issues in my full course on 1C Accounting. After completing the training course, all your questions about 1C will disappear.

Almost every accountant in the course of his work is faced with the need to delete some document in 1C. If you don’t know how to properly delete documents in 1C, our new article is especially for you.

Almost every accountant in the course of his work is faced with the need to delete some file or document. Deleting a document in 1C is not much different from a similar process when working with the Windows operating system. There are a few important differences though:

    firstly, initially the document that needs to be deleted must be marked with a special sign (if we compare it with Windows OS, we can draw an analogy with moving a file to the trash);

    secondly, direct deletion occurs according to a strictly defined algorithm of actions.

If you are using version 1C 8.2, then in order to delete a file you need:

    right-click on the required document;

    wait until the context menu appears;

    mark a specific file for deletion, for which in the list that appears, select “set a deletion mark”;

    give your consent to the system warning.

You can do it simpler and simply press the delete key after selecting the file to be deleted.


After all these manipulations, you will need to go to the main menu item called “Operations” and select the function of deleting marked objects. The system will give you a warning, which you will need to agree to before the program continues.



Next, the system will open a window in front of you where everything in the databases that are marked for deletion will be listed. From this list you have to select those that you want to delete right now. This can be one document or a whole group. When the file or files you are looking for are highlighted, you need to click the "Control" button. This is required in order to check links.


In the process of these actions, it may become clear that, for example, 1C directories contain links to the document to be deleted, or that the tax invoice contains a link that leads to the file that you are going to delete (invoice). To be able to complete the deletion process, you will need to open tax invoices or directories, or those documents that contain links to the file being deleted, and delete these same links. First, you will need to once again weigh the feasibility of such actions.




To avoid further confusion, you will need to recheck later after removing all links. And so on until the check shows that there are no links to the file to be deleted in other documents. After this, you will have access to the function of deleting marked objects. To complete the entire process, you will need to click on the “delete” button, after which the file will be deleted permanently.